diff options
Diffstat (limited to 'components/script/dom/dedicatedworkerglobalscope.rs')
-rw-r--r-- | components/script/dom/dedicatedworkerglobalscope.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/dedicatedworkerglobalscope.rs b/components/script/dom/dedicatedworkerglobalscope.rs index 37e507745cd..1223dad7012 100644 --- a/components/script/dom/dedicatedworkerglobalscope.rs +++ b/components/script/dom/dedicatedworkerglobalscope.rs @@ -25,9 +25,9 @@ use dom::workerglobalscope::WorkerGlobalScope; use dom_struct::dom_struct; use ipc_channel::ipc::{self, IpcReceiver, IpcSender}; use ipc_channel::router::ROUTER; -use js::jsapi::{HandleValue, JS_SetInterruptCallback}; -use js::jsapi::{JSAutoCompartment, JSContext, NullHandleValue}; +use js::jsapi::{JS_SetInterruptCallback, JSAutoCompartment, JSContext}; use js::jsval::UndefinedValue; +use js::rust::HandleValue; use msg::constellation_msg::TopLevelBrowsingContextId; use net_traits::{IpcSend, load_whole_resource}; use net_traits::request::{CredentialsMode, Destination, RequestInit}; @@ -373,14 +373,14 @@ impl DedicatedWorkerGlobalScope { error_info.filename.as_str().into(), error_info.lineno, error_info.column, - unsafe { NullHandleValue }, + HandleValue::null(), ); let event_status = event.upcast::<Event>().fire(worker.upcast::<EventTarget>()); // Step 2. if event_status == EventStatus::NotCanceled { - global.report_an_error(error_info, unsafe { NullHandleValue }); + global.report_an_error(error_info, HandleValue::null()); } })); // TODO: Should use the DOM manipulation task source. |