Debian Codegraph @

js/src/jit-test/tests/jaeger/bug704138.js

raw
1 load(libdir + "immutable-prototype.js");
2
3 function TestCase(n, d, e, a) {
4 this.name=n;
5 return n;
6 }
7
8 function reportCompare (expected, actual, description) {
9 new TestCase
10 }
11
12 reportCompare(true, "isGenerator" in Function, "Function.prototype.isGenerator present");
13 var p = new Proxy({}, {});
14 function test() {
15 TestCase.prototype.__proto__=null
16 if (new TestCase)
17 TestCase.prototype.__proto__=p
18 }
19 test();
20 new TestCase;
21 test()