summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/modules/bug1429031.js
blob: b65daa081b4b5349145cd23c0d0008e3d3147a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error: ReferenceError

assertEq = function(a, b) {}
evaluate(`
let a = registerModule('a', parseModule(
    'export var a = 1;'
));
let b = registerModule('b', parseModule(
    \`import * as ns from 'a';
     export var x = ns.a + ns.b;\`
));
moduleLink(b);
let ns = getModuleEnvironmentValue(b, "ns");
assertEq(ns.a, 1);
while ( t.ArrayType() ) 1;
`);