mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
script creates methods taking '*mut JSContext' unsafe
rebase + marked the necessary new code as unsafe
This commit is contained in:
parent
9fd6f0acd5
commit
b372e7c98f
28 changed files with 274 additions and 226 deletions
|
@ -110,6 +110,7 @@ impl ServiceWorkerGlobalScope {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
pub fn new(init: WorkerGlobalScopeInit,
|
||||
worker_url: Url,
|
||||
from_devtools_receiver: Receiver<DevtoolScriptControlMsg>,
|
||||
|
@ -132,7 +133,9 @@ impl ServiceWorkerGlobalScope {
|
|||
timer_event_port,
|
||||
swmanager_sender,
|
||||
scope_url);
|
||||
ServiceWorkerGlobalScopeBinding::Wrap(cx, scope)
|
||||
unsafe {
|
||||
ServiceWorkerGlobalScopeBinding::Wrap(cx, scope)
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue