summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/module/dynamic-import/propagate-nonce-external.js
blob: 3b97d2f40e914af5d22ecc338913dcb0591927ba (plain)
1
2
3
4
5
6
7
// This file is loaded both as a module and as a classic script.
promise_test(t => {
  return import("../imports-a.js").then(module => {
    assert_true(window.evaluated_imports_a);
    assert_equals(module.A["from"], "imports-a.js");
  });
}, "Dynamically imported module should eval when imported from script w/ a valid nonce.");