Skip to content

Instantly share code, notes, and snippets.

@gskachkov
Created July 27, 2015 18:40
Show Gist options
  • Save gskachkov/dd81234e35bd697aa22a to your computer and use it in GitHub Desktop.
Save gskachkov/dd81234e35bd697aa22a to your computer and use it in GitHub Desktop.
stress/arrowfunction-bound.js.always-trigger-copy-phase
stress/arrowfunction-bound.js.default-ftl
stress/arrowfunction-bound.js.dfg-eager
stress/arrowfunction-bound.js.no-llint
stress/arrowfunction-lexical-this-1.js.always-trigger-copy-phase
stress/arrowfunction-lexical-this-1.js.default
stress/arrowfunction-lexical-this-1.js.default-ftl
stress/arrowfunction-lexical-this-1.js.dfg-eager
stress/arrowfunction-lexical-this-1.js.ftl-eager
stress/arrowfunction-lexical-this-1.js.ftl-no-cjit-no-inline-validate
stress/arrowfunction-lexical-this-1.js.ftl-no-cjit-small-pool
stress/arrowfunction-lexical-this-1.js.ftl-no-cjit-validate
stress/arrowfunction-lexical-this-1.js.no-cjit-validate-phases
stress/arrowfunction-lexical-this-1.js.no-llint
stress/arrowfunction-lexical-this-3.js.ftl-eager
stress/arrowfunction-lexical-this-4.js.dfg-eager
stress/arrowfunction-lexical-this-4.js.no-llint
stress/arrowfunction-lexical-this-5.js.always-trigger-copy-phase
stress/arrowfunction-lexical-this-5.js.ftl-eager
stress/arrowfunction-run-10000-1.js.always-trigger-copy-phase
stress/arrowfunction-run-10000-1.js.default-ftl
stress/arrowfunction-run-10000-1.js.ftl-eager
stress/arrowfunction-run-10000-1.js.ftl-no-cjit-small-pool
stress/arrowfunction-run-10000-1.js.no-llint
stress/arrowfunction-run-10000-2.js.default
stress/arrowfunction-run-10000-2.js.dfg-eager
stress/arrowfunction-run-10000-2.js.ftl-eager
@gskachkov
Copy link
Author

Shortest js that leads to error

var check = function (actual) {
  if (actual === true) {
    debug(true);
  }
};

function run(count) {
  for(var i=0; i<10000; i++) {
    var Obj = function (id) {
      this.id = id;
      this.getName = () => this.id;
    };
    var obj = new Obj("Item" + i);
  }
}
check(run(10000));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment