Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
instanceof-mutate-proto.js
blob: e3e057ec4fa9a5b97832f3db3bd055c711ac31d6 [
file
] [
log
] [
blame
]
function
g
(
i
)
{
with
(
this
)
{};
// Don't inline.
if
(
i
===
1500
)
String
.
prototype
.
__proto__
=
Array
.
prototype
;
}
function
f
()
{
var
arr
=
new
String
(
"A"
);
for
(
var
i
=
0
;
i
<
2000
;
i
++)
{
g
(
i
);
assertEq
(
arr instanceof
Array
,
i
>=
1500
);
}
}
f
();