utatane.tea@gmail.com | 43f08b7 | 2017-02-22 09:23:08 +0000 | [diff] [blame] | 1 | function shouldBe(actual, expected) { |
2 | if (actual !== expected) | ||||
3 | throw new Error('bad value: ' + actual); | ||||
4 | } | ||||
5 | |||||
6 | import("./resources/module-namespace-access.js").then((ns) => { | ||||
7 | for (var i = 0; i < 1e6; ++i) { | ||||
8 | shouldBe(ns.test, 42); | ||||
9 | shouldBe(ns.cocoa(), 42); | ||||
10 | } | ||||
11 | }); | ||||
12 | drainMicrotasks(); |