Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
bug806522.js
blob: 1507276c1a1ea7ac40b6e1ce69f75a7e9cb9e7f5 [
file
] [
log
] [
blame
]
load
(
libdir
+
"asserts.js"
);
var
g
=
evalcx
(
"lazy"
);
assertThrowsInstanceOf
(
()
=>
evaluate
(
"{ let eval; eval()}"
,
{
global
:
g
}),
g
.
TypeError
);
// eval is not a function
assertEq
(
evaluate
(
"{ let eval = parseInt; eval()}"
,
{
global
:
g
}),
NaN
);