Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
bug827659-2.js
blob: f223a6a6d5c3eaa330d20c4eca3ee0732b5dd4c5 [
file
] [
log
] [
blame
]
function
f
(
x
)
{
return
x
[
"__proto__"
]
}
var
res
=
0
;
for
each
(
a in
[{},
null
])
{
try
{
f
(
a
);
res
+=
20
;
}
catch
(
e
)
{
assertEq
(
e instanceof
TypeError
,
true
);
assertEq
(
e
.
message
.
indexOf
(
"is null"
)
>
0
,
true
);
res
+=
50
;
}
}
assertEq
(
res
,
70
);