diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-02 15:51:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-02 15:51:08 +0200 |
| commit | 2872b362ff76273d897d75bb8a3ddd5510c182f4 (patch) | |
| tree | 7b1061aacca70eec34be3e307719f5113d932b57 /cli/tests/error_local_static_import_from_remote.ts.out | |
| parent | de2c042482741dc23f7d975458a1fba95863de53 (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.ts.out')
| -rw-r--r-- | cli/tests/error_local_static_import_from_remote.ts.out | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/error_local_static_import_from_remote.ts.out b/cli/tests/error_local_static_import_from_remote.ts.out new file mode 100644 index 000000000..de20b9d81 --- /dev/null +++ b/cli/tests/error_local_static_import_from_remote.ts.out @@ -0,0 +1,9 @@ +[WILDCARD] +error: Uncaught PermissionDenied: Remote module are not allowed to statically import local modules. Use dynamic import instead. + at unwrapResponse ($deno$/ops/dispatch_json.ts:[WILDCARD]) + at Object.sendAsync ($deno$/ops/dispatch_json.ts:[WILDCARD]) + at async processImports ($deno$/compiler/imports.ts:[WILDCARD]) + at async Object.processImports ($deno$/compiler/imports.ts:[WILDCARD]) + at async compile ([WILDCARD]compiler.ts:[WILDCARD]) + at async tsCompilerOnMessage ([WILDCARD]compiler.ts:[WILDCARD]) + at async workerMessageRecvCallback ($deno$/runtime_worker.ts:[WILDCARD]) |
