Skip to content

ES6 Out: Captures of Super Fail in MS Edge - breaks async/await transpilation #3101

Closed
@ChadKillingsworth

Description

@ChadKillingsworth

The following code will infinitely loop and alert "Child foo" in MS Edge. All other browsers seem to handle this correctly.

class Base {
  foo() {
    alert('base foo');
  }
}

class Child extends Base {
  foo() {
    const parent = () => super.foo;
    alert('Child foo');
    parent().call(this);
  }
}

(new Child()).foo();

This breaks async / await transpilation with ES2015 out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions