mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Stop using JSAutoRequest.
This commit is contained in:
parent
221db56b08
commit
735480c184
13 changed files with 13 additions and 26 deletions
|
@ -23,7 +23,7 @@ use dom::workerglobalscope::WorkerGlobalScopeInit;
|
|||
use ipc_channel::ipc::{self, IpcReceiver, IpcSender};
|
||||
use ipc_channel::router::ROUTER;
|
||||
use js::jsapi::{HandleValue, JS_SetInterruptCallback};
|
||||
use js::jsapi::{JSAutoCompartment, JSAutoRequest, JSContext, RootedValue};
|
||||
use js::jsapi::{JSAutoCompartment, JSContext, RootedValue};
|
||||
use js::jsval::UndefinedValue;
|
||||
use js::rust::Runtime;
|
||||
use msg::constellation_msg::PipelineId;
|
||||
|
@ -347,7 +347,6 @@ impl DedicatedWorkerGlobalScope {
|
|||
WorkerScriptMsg::DOMMessage(data) => {
|
||||
let scope = self.upcast::<WorkerGlobalScope>();
|
||||
let target = self.upcast();
|
||||
let _ar = JSAutoRequest::new(scope.get_cx());
|
||||
let _ac = JSAutoCompartment::new(scope.get_cx(),
|
||||
scope.reflector().get_jsobject().get());
|
||||
let mut message = RootedValue::new(scope.get_cx(), UndefinedValue());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue