diff options
Diffstat (limited to 'components/script/dom/testworkletglobalscope.rs')
-rw-r--r-- | components/script/dom/testworkletglobalscope.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/testworkletglobalscope.rs b/components/script/dom/testworkletglobalscope.rs index 54b2c299df7..22be6a4765f 100644 --- a/components/script/dom/testworkletglobalscope.rs +++ b/components/script/dom/testworkletglobalscope.rs @@ -37,10 +37,10 @@ impl TestWorkletGlobalScope { -> DomRoot<TestWorkletGlobalScope> { debug!("Creating test worklet global scope for pipeline {}.", pipeline_id); - let global = box TestWorkletGlobalScope { + let global = Box::new(TestWorkletGlobalScope { worklet_global: WorkletGlobalScope::new_inherited(pipeline_id, base_url, executor, init), lookup_table: Default::default(), - }; + }); unsafe { TestWorkletGlobalScopeBinding::Wrap(runtime.cx(), global) } } |