Google Chromeはバージョン42以降ES6クラスをサポートするために主張してChromeで動作しませんが、私は、コンソールに以下の簡単なコードを実行すると、それはUncaught SyntaxError: Unexpected token class(…)
を与える:ES6クラスは47
class Polygon {
constructor(height, width) {
this.name = 'Polygon';
this.height = height;
this.width = width;
}
Firefoxのもdoesnの」仕事。 Microsoft Edgeは正常に動作します。これは正常ですか?
https://kangax.github.io/compat-table/es6/#test-class – apsillers