Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testThrowingObjectEqUndefined.js
blob: 5104c52ee76cc91226b07a42833fba6594ea2c31 [
file
] [
log
] [
blame
]
function
testThrowingObjectEqUndefined
()
{
try
{
var
obj
=
{
toString
:
function
()
{
throw
0
;
}
};
for
(
var
i
=
0
;
i
<
5
;
i
++)
""
+
(
obj
==
undefined
);
return
i
===
5
;
}
catch
(
e
)
{
return
""
+
e
;
}
}
assertEq
(
testThrowingObjectEqUndefined
(),
true
);