summaryrefslogtreecommitdiff
path: root/cli/tests/error_local_static_import_from_remote.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-05-02 15:51:08 +0200
committerGitHub <noreply@github.com>2020-05-02 15:51:08 +0200
commit2872b362ff76273d897d75bb8a3ddd5510c182f4 (patch)
tree7b1061aacca70eec34be3e307719f5113d932b57 /cli/tests/error_local_static_import_from_remote.js
parentde2c042482741dc23f7d975458a1fba95863de53 (diff)
BREAKING: disallow static import of local modules from remote modules (#5050)
This commit changes module loading logic to disallow statically import local module (file:// scheme) from remote modules (http://, https:// schemes).
Diffstat (limited to 'cli/tests/error_local_static_import_from_remote.js')
-rw-r--r--cli/tests/error_local_static_import_from_remote.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tests/error_local_static_import_from_remote.js b/cli/tests/error_local_static_import_from_remote.js
new file mode 100644
index 000000000..eb7fd23ba
--- /dev/null
+++ b/cli/tests/error_local_static_import_from_remote.js
@@ -0,0 +1 @@
+import "file:///some/dir/file.js";