Create a lot of instances - error Object doesn't support this Action (using JavaScript ES6)

Not reproducible Issue #6664966

Details

Created
Feb 24, 2016
Privacy
This issue is public.
Reports
Reported by 4 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

Sample repro attached.

we experienced following problem in the last build of Edge web browser (v13.14251). We are using JavaScript ES6 (converted from TypeScript) in our web application and when we create a lot of instances of any class (for example 900 instances of class called Event, mentioned bellow) then the Edge writes error Object doesn’t support this action into the console and user cannot performe any other action in the app anymore.

class Event {
constructor() {
this._listeners = [];
this.IsEnabled = true;
}

Error occures when the second line is hit (this._listeners = []). This functionality works fine in other tested browsers (Google Chrome, Mozilla Firefox). Thank you for fixing this bug.

Expected Results:

Edge browser will correctly run mentioned JavaScript ES6 code without causing error Object doesn’t support this action.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Kamen M.”

      Changed Assigned To to “ChakraTriage”

      Changed Assigned To from “ChakraTriage” to “Suwei C.”

      Changed Assigned To from “Suwei C.” to “IE S.”

      Changed Status to “Not reproducible”

    • We are also using TypeScript to generate ES6 and are also encountering this issue.
      Current work-around is to switch back to ES5.

      I do not think it is to do with creating a lot of instances of anything, however. The target site displayed in the console seems inaccurate as it changes depending on where break-points are inserted, and often points to an illogical location for an error to occur.

      Furthermore, the act of stepping through the code until you get the problem makes the issue disappear. That is, if you narrow the problem down to a particular method call, stepping into that method makes the issue disappear. Removing the problematic method makes the issue occur elsewhere.

    • Encountered this exact same thing creating a fireworks example - many particles are created and after about 4 or 5 explosions, the program stops working.

      Not exactly a “reduced” test case, but it does highlight the problem, see attached repo

      1. npm install
      2. npm run-script compile
      3. Open index.html in edge
      4. Wait for a few explosions

      Expected: Program continues to function without error.
      Actual:

      SCRIPT445: Object doesn't support this action
      program.js (66,13)
    • Hello,

      Thank you for providing this information about the issue. After thorough testing, we are unable to reproduce this problem in Edge 14304 and 14393. Please check if this feature is fixed in our latest Insider Preview build Edge 15063.

      Best Wishes,
      The MS Edge Team

    You need to sign in to your Microsoft account to add a comment.

    Sign in