Open
Description
The async-arrows-in-class transform uses Babel's arrowFunctionToExpression() helper, which doesn't patch calls to super methods:
Input: | Output: |
---|---|
class A extends B {
a() {
(async () => {
super.b();
})();
}
} |
class A extends B {
a() {
(async function () {
super.b(); // this is invalid
})();
}
} |
Here's the bug reproduced in the Babel repl.