blob: b77e517b0ff664ae6f2056be1efd88968c8134a3 [file] [log] [blame]
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()