Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
bug792944.js
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
);
}