mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Stop using JSAutoRequest.
This commit is contained in:
parent
221db56b08
commit
735480c184
13 changed files with 13 additions and 26 deletions
|
@ -22,7 +22,7 @@ use dom::messageevent::MessageEvent;
|
|||
use dom::workerglobalscope::WorkerGlobalScopeInit;
|
||||
use ipc_channel::ipc;
|
||||
use js::jsapi::{HandleValue, JSContext, JSRuntime, RootedValue};
|
||||
use js::jsapi::{JSAutoCompartment, JSAutoRequest, JS_RequestInterruptCallback};
|
||||
use js::jsapi::{JSAutoCompartment, JS_RequestInterruptCallback};
|
||||
use js::jsval::UndefinedValue;
|
||||
use js::rust::Runtime;
|
||||
use script_runtime::ScriptChan;
|
||||
|
@ -133,7 +133,6 @@ impl Worker {
|
|||
|
||||
let global = worker.r().global();
|
||||
let target = worker.upcast();
|
||||
let _ar = JSAutoRequest::new(global.r().get_cx());
|
||||
let _ac = JSAutoCompartment::new(global.r().get_cx(), target.reflector().get_jsobject().get());
|
||||
let mut message = RootedValue::new(global.r().get_cx(), UndefinedValue());
|
||||
data.read(global.r(), message.handle_mut());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue