Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
splice-throwing-length-getter-668024.js
blob: 695460b5c8af2c20cd819cf660c43554009ecaf9 [
file
] [
log
] [
blame
]
try
{
Array
.
prototype
.
splice
.
call
({
get
length
()
{
throw
'error'
;
}
});
throw
new
Error
(
"should have thrown, didn't"
);
}
catch
(
e
)
{
assertEq
(
e
,
"error"
,
"wrong error thrown: "
+
e
);
}