Sign in
cobalt
/
cobalt
/
e77c070364e97b7a7deea396227c08805cb9e66d
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
modules
/
import-in-lazy-function.js
blob: cddacb1428a4bdc65a375b2db4b24bd60fe6f891 [
file
] [
log
] [
blame
]
// |jit-test| module
// Test that accessing imports in lazily parsed functions works.
import
{
a
}
from
"module1.js"
;
function
add1
(
x
)
{
return
x
+
a
;
}
assertEq
(
add1
(
2
),
3
);