Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
test-error-accessors-with-wrappers.js
blob: 2afa881f3a332c9c62adc200edce18df2186f8cc [
file
] [
log
] [
blame
]
let g
=
newGlobal
();
let error
=
g
.
eval
(
"Error()"
);
// This should not throw.
assertEq
(
typeof
error
.
stack
,
"string"
);
g
.
error
=
Error
();
// Nor should this.
assertEq
(
g
.
eval
(
"typeof error.stack"
),
"string"
);