6to5 コンパイラを使用して ES6 クラスを作成しています。セッター関数を呼び出す非常に基本的なクラスがありnew Date()、残念ながらmaximum callstack exceededChrome例外とtoo much recursionFireFoxが発生します。
次のパターンの何が問題なのかわかりませんが、呼び出しnew Date()が例外の原因です。
class DateTime {
constructor() {
this.active = null
}
set active() {
this.active = new Date()
}
get active() {
return this.active
}
}
new DateTime()