Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
modules
/
namespace-import-compilation-2.js
blob: ae322246dd3304a29e76db48106f14c539a6fca7 [
file
] [
log
] [
blame
]
// |jit-test| module
import
*
as ns from
'module1.js'
;
let other
=
ns
;
const
iterations
=
2000
;
let x
=
0
;
for
(
let i
=
0
;
i
<
iterations
;
i
++)
{
if
(
i
==
iterations
/
2
)
other
=
1
;
x
+=
other
.
a
;
}
assertEq
(
other
.
a
,
undefined
);
assertEq
(
x
,
NaN
);