Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
tests
/
js1_8_5
/
regress
/
regress-665355.js
blob: ef91161c40ffe615ac9ed7a324ae6e43463f3dd6 [
file
] [
log
] [
blame
]
var
x
=
new
ArrayBuffer
(
2
);
var
test
=
function
(
newProto
)
{
try
{
x
.
__proto__
=
newProto
;
return
false
;
}
catch
(
e
)
{
return
true
;
}
}
assertEq
(
test
(
x
),
true
);
assertEq
(
test
({}),
true
);
assertEq
(
test
(
null
),
true
);
reportCompare
(
true
,
true
);