blob: 0c4d54bbcdf7ed3a34bd0921ebc1eba8c628284e [file] [log] [blame]
function whoo() {
(new Object()).foo()
}
Object.prototype.foo = function() { return undefined };
whoo();
Object.prototype.foo = undefined;
gc();
try {
whoo();
assertEq(0, 1);
} catch(e) {
assertEq(e instanceof TypeError, true);
}