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 = Proxy.create({ | |
has : function(id) {}, | |
set : function(obj, id, v, rec) {} | |
}); | |
function test() { | |
TestCase.prototype.__proto__=null | |
if (new TestCase) | |
TestCase.prototype.__proto__=p | |
} | |
test(); | |
new TestCase; | |
test() |