diff options
Diffstat (limited to 'components/script/dom/workerlocation.rs')
-rw-r--r-- | components/script/dom/workerlocation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/workerlocation.rs b/components/script/dom/workerlocation.rs index 8154d4d01b7..7092b2979ec 100644 --- a/components/script/dom/workerlocation.rs +++ b/components/script/dom/workerlocation.rs @@ -29,9 +29,9 @@ impl WorkerLocation { } } - pub fn new(global: &JSRef<WorkerGlobalScope>, url: Url) -> Temporary<WorkerLocation> { + pub fn new(global: JSRef<WorkerGlobalScope>, url: Url) -> Temporary<WorkerLocation> { reflect_dom_object(box WorkerLocation::new_inherited(url), - &Worker(*global), + &Worker(global), WorkerLocationBinding::Wrap) } } |