diff options
author | Josh Matthews <josh@joshmatthews.net> | 2020-06-11 13:32:40 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2020-06-16 14:39:20 -0400 |
commit | 83578265b456d53f62e1d71378b6d84fc853ca54 (patch) | |
tree | 9fb7cdb1e95d17ecfe903e52b4ddd7c2feebc350 /components/script/script_runtime.rs | |
parent | 850c5c20c32e84a599db9f784de54dfc7ee1265f (diff) | |
download | servo-83578265b456d53f62e1d71378b6d84fc853ca54.tar.gz servo-83578265b456d53f62e1d71378b6d84fc853ca54.zip |
Don't pretend we support SharedArrayBuffer.
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r-- | components/script/script_runtime.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index 4cf2055c649..dc51330cf91 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -45,7 +45,6 @@ use js::jsapi::ContextOptionsRef; use js::jsapi::GetPromiseUserInputEventHandlingState; use js::jsapi::InitConsumeStreamCallback; use js::jsapi::InitDispatchToEventLoop; -use js::jsapi::JS_SetFutexCanWait; use js::jsapi::MimeType; use js::jsapi::PromiseUserInputEventHandlingState; use js::jsapi::StreamConsumer as JSStreamConsumer; @@ -451,14 +450,6 @@ unsafe fn new_rt_and_cx_with_parent( let (cx, runtime) = if let Some(parent) = parent { let runtime = RustRuntime::create_with_parent(parent); let cx = runtime.cx(); - - // Note: this enables blocking on an Atomics.wait, - // which should only be enabled for an agent whose [[CanBlock]] is true. - // Currently only a dedicated worker agent uses a parent, - // and this agent can block. - // See https://html.spec.whatwg.org/multipage/#integration-with-the-javascript-agent-cluster-formalism - JS_SetFutexCanWait(cx); - (cx, runtime) } else { let runtime = RustRuntime::new(JS_ENGINE.lock().unwrap().as_ref().unwrap().clone()); |