Debian Codegraph @

js/src/jit-test/tests/basic/new-Function-prototype.js

raw
1 var funProto = Function.prototype;
2 assertEq(Object.getOwnPropertyDescriptor(funProto, "prototype"), undefined);
3 assertEq(parseInt.prototype, undefined);
4 var oldObj;
5 for (var i = 0, sz = 9; i < sz; oldObj = obj, i++)
6 {
7
8 try {
9 var obj = new funProto;
10 }
11 catch (e) {}
12 assertEq(Object.getOwnPropertyDescriptor(funProto, "prototype"), undefined);
13 assertEq(Object.getOwnPropertyDescriptor(parseInt, "prototype"), undefined);
14 assertEq(parseInt.prototype, undefined);
15 }
16