diff options
Diffstat (limited to 'testing/web-platform/mozilla/tests/html/semantics/scripting-1/the-script-element/support/async_module.js')
-rw-r--r-- | testing/web-platform/mozilla/tests/html/semantics/scripting-1/the-script-element/support/async_module.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/web-platform/mozilla/tests/html/semantics/scripting-1/the-script-element/support/async_module.js b/testing/web-platform/mozilla/tests/html/semantics/scripting-1/the-script-element/support/async_module.js new file mode 100644 index 0000000000..34a590bcfc --- /dev/null +++ b/testing/web-platform/mozilla/tests/html/semantics/scripting-1/the-script-element/support/async_module.js @@ -0,0 +1,14 @@ +import nsPromise from './async_test_module.js'; + +console.log("hi"); +let ns = await nsPromise; + +if (ns.default !== 42) { + throw new Error("FAIL"); +} +if (ns.x !== "named") { + throw new Error("FAIL"); +} +if (ns.y !== 39) { + throw new Error("FAIL"); +} |