Debian Codegraph @

js/src/jit-test/tests/cacheir/bug1502709.js

raw
1
2 setJitCompilerOption("baseline.warmup.trigger", 0);
3 main();
4
5 function main() {
6 try {
7 x = [];
8 Object.defineProperty(x, 1, {});
9 y = [];
10 Object.defineProperty(y, 1, {});
11 y.__proto__ = null;
12 Array.prototype.sort.apply(x, [function() {}]);
13 } catch (e) {}
14 try {
15 Array.prototype.sort.apply(y, [function() {}]);
16 } catch (e) {}
17 }