diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-05-09 14:44:07 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-05-09 14:44:07 +0200 |
commit | 30055d98205488431939f66020a70f8e4da960c7 (patch) | |
tree | 300dd59c83a4ff6e01a263e1ca69e1735fc237dc /src/components/script/script_task.rs | |
parent | 052d3cb0835470da281669b8dce1c9c51e8e7b9e (diff) | |
download | servo-30055d98205488431939f66020a70f8e4da960c7.tar.gz servo-30055d98205488431939f66020a70f8e4da960c7.zip |
Move debug functions to Window IDL.
This is a cleaner way to expose those functions, and makes it possible to
remove a significant amount code in rust-mozjs.
The assert() function is no longer exposed, as it was unused and not very
useful.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index 45f1349b3f6..3016edad524 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -34,8 +34,7 @@ use layout_interface; use geom::point::Point2D; use geom::size::Size2D; -use js::global::DEBUG_FNS; -use js::jsapi::{JS_CallFunctionValue, JS_DefineFunctions}; +use js::jsapi::JS_CallFunctionValue; use js::jsapi::{JS_SetWrapObjectCallbacks, JS_SetGCZeal, JS_DEFAULT_ZEAL_FREQ, JS_GC}; use js::jsapi::{JSContext, JSRuntime}; use js::jsval::NullValue; @@ -1004,13 +1003,6 @@ impl ScriptTask { debug!("js_scripts: {:?}", js_scripts); with_compartment((**cx).ptr, window.reflector().get_jsobject(), || { - // Define debug functions. - unsafe { - assert!(JS_DefineFunctions((**cx).ptr, - window.reflector().get_jsobject(), - DEBUG_FNS.as_ptr()) != 0); - } - // Evaluate every script in the document. for file in js_scripts.iter() { let global_obj = window.reflector().get_jsobject(); |