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