Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
bug1237564.js
blob: a67174c757783c9c5d65ad57fd0ca6d18439fc84 [
file
] [
log
] [
blame
]
// |jit-test| error:ReferenceError: can't access lexical
try
{
evaluate
(
"let x = (() => { throw 3 })();"
);
}
catch
(
e
)
{
assertEq
(
e
,
3
);
}
Object
.
defineProperty
(
this
,
"x"
,
{});
(
function
()
{
x
=
3
;
})();