diff options
author | Jack Moffitt <jack@metajack.im> | 2016-04-06 17:00:48 -0600 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2016-04-08 08:46:22 -0600 |
commit | 1bec1934153479de7ef3ebd17d78562c048356ba (patch) | |
tree | 25e0e39a77feb627027be973b3d34274173bf492 /components/script/script_thread.rs | |
parent | 6150e174c14b74ad560ab3b4f3f6ded9ba95b7e2 (diff) | |
download | servo-1bec1934153479de7ef3ebd17d78562c048356ba.tar.gz servo-1bec1934153479de7ef3ebd17d78562c048356ba.zip |
Use better JS engine defaults
This adds in preferences for all the SM 39 available options (as
retrieved from Gecko), and uses the same defaults as Gecko. A few
properties are not supported yet, and incremental GC is still always
disabled regardless of the preference setting.
This also adds back in the options that were accidentally deleted when
\#10342 was rebased, which moved things from script_thread.rs to
script_runtime.rs.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index b9027c96390..7cb24e110bc 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -52,7 +52,8 @@ use hyper::mime::{Mime, SubLevel, TopLevel}; use ipc_channel::ipc::{self, IpcSender}; use ipc_channel::router::ROUTER; use js::jsapi::{DOMProxyShadowsResult, HandleId, HandleObject, RootedValue}; -use js::jsapi::{JSAutoRequest, JSContext, JS_SetWrapObjectCallbacks, JSTracer}; +use js::jsapi::{JSAutoRequest, JS_SetWrapObjectCallbacks}; +use js::jsapi::{JSContext, JSTracer}; use js::jsval::UndefinedValue; use js::rust::Runtime; use layout_interface::{ReflowQueryType}; |