Google Chrome twierdzi, że obsługuje klas ES6 od wersji 42, ale daje Uncaught SyntaxError: Unexpected token class(…)
kiedy uruchomić prosty kod z dołu w konsoli:ES6 klas nie działają w Chrome 47
class Polygon {
constructor(height, width) {
this.name = 'Polygon';
this.height = height;
this.width = width;
}
Firefox też nie robi” t działa. Microsoft Edge działa dobrze. Czy to normalne?
https://kangax.github.io/compat-table/es6/#test-class – apsillers