Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@ChadKillingsworth

Description

@ChadKillingsworth
Issue body actions

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.

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.