diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-06-09 13:33:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 14:33:52 +0200 |
commit | 44251ce8eaa0def807b9867f73ee23adfb539487 (patch) | |
tree | c5d54ca5aeb873fe948270149743c968e9a5efa5 /cli/ops/worker_host.rs | |
parent | 81a6f673ad48f15183575105016509e7743ff0ac (diff) |
fix(cli/js/web/worker): Disable relative module specifiers (#5266)
Diffstat (limited to 'cli/ops/worker_host.rs')
-rw-r--r-- | cli/ops/worker_host.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/ops/worker_host.rs b/cli/ops/worker_host.rs index 0ed700431..950797352 100644 --- a/cli/ops/worker_host.rs +++ b/cli/ops/worker_host.rs @@ -193,13 +193,11 @@ fn op_create_worker( let mut state = state.borrow_mut(); let global_state = state.global_state.clone(); let permissions = state.permissions.clone(); - let referrer = state.main_module.to_string(); let worker_id = state.next_worker_id; state.next_worker_id += 1; drop(state); - let module_specifier = - ModuleSpecifier::resolve_import(&specifier, &referrer)?; + let module_specifier = ModuleSpecifier::resolve_url(&specifier)?; let worker_name = args_name.unwrap_or_else(|| "".to_string()); let (join_handle, worker_handle) = run_worker_thread( |