Open
Description
class Base { xyz () {} }
const Enhanced = enhance(Base)
const inst = new Enhanced()
inst.xyz()
function enhance (Klass) {
Klass = class extends Klass {
xyz () {
super.xyz()
}
}
return Klass
}
$ cat abc.js | node
$ npx buble abc.js | node
[stdin]:20
Klass.prototype.xyz = function xyz () {
^
RangeError: Maximum call stack size exceeded
at Klass.xyz ([stdin]:20:40)
at Klass.xyz ([stdin]:21:27)
at Klass.xyz ([stdin]:21:27)
at Klass.xyz ([stdin]:21:27)
at Klass.xyz ([stdin]:21:27)
at Klass.xyz ([stdin]:21:27)
at Klass.xyz ([stdin]:21:27)
at Klass.xyz ([stdin]:21:27)
at Klass.xyz ([stdin]:21:27)
at Klass.xyz ([stdin]:21:27)