diff options
Diffstat (limited to '')
-rw-r--r-- | dom/base/test/file_script_module_element_and_dynamic_imported_1.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dom/base/test/file_script_module_element_and_dynamic_imported_1.js b/dom/base/test/file_script_module_element_and_dynamic_imported_1.js new file mode 100644 index 0000000000..d56c222120 --- /dev/null +++ b/dom/base/test/file_script_module_element_and_dynamic_imported_1.js @@ -0,0 +1,12 @@ +import { g } from "./file_script_module_element_and_dynamic_imported_2.js"; +import { h } from "./file_script_module_element_and_dynamic_imported_3.js"; +g(); +h(); + +export function f() {} + +let script = document.createElement("script"); +script.id = "watchme2"; +script.setAttribute("type", "module"); +script.setAttribute("src", "file_script_module_element_and_dynamic.js"); +document.body.appendChild(script); |