mirror of https://github.com/tc39/test262.git
13 lines
313 B
JavaScript
13 lines
313 B
JavaScript
function shouldBe(actual, expected) {
|
|
if (actual !== expected)
|
|
throw new Error('bad value: ' + actual);
|
|
}
|
|
|
|
import("./resources/module-namespace-access.js").then((ns) => {
|
|
for (var i = 0; i < 1e6; ++i) {
|
|
shouldBe(ns.test, 42);
|
|
shouldBe(ns.cocoa(), 42);
|
|
}
|
|
});
|
|
drainMicrotasks();
|