blob: a573f05ef38224c3d708dbcfaca0565b19bf4c0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Test many exports.
const count = 1024;
let s = "";
for (let i = 0; i < count; i++)
s += "export let e" + i + " = " + (i * i) + ";\n";
let a = registerModule('a', parseModule(s));
let b = registerModule('b', parseModule("import * as ns from 'a'"));
moduleLink(b);
moduleEvaluate(b);
let ns = a.namespace;
for (let i = 0; i < count; i++)
assertEq(ns["e" + i], i * i);
|