Closed
Description
Calls to super getters aren't supported yet.
class Foo {
get x() { return 'Foo'; }
}
class Bar extends Foo {
get x() { return super.x; }
}
console.log(new Foo().x);
console.log(new Bar().x);
Current error:
ERROR - ES6 transpilation of 'Only calls to super or to a method of super are supported.' is not yet implemented.
get x() { return super.x; }
^
This is needed to compile DDC's output with Closure.
Activity
ochafik commentedon Sep 12, 2015
Hey guys, I had a look at how to work around this issue and came up with #1133. Please let me know what you think :-)
bitbay commentedon Mar 2, 2016
It is still an issue using
--language_in ECMASCRIPT6
with--language_out ES5_STRICT
.My workaround using
throws an error:
ChadKillingsworth commentedon Sep 15, 2017
this was fixed a while ago.