diff options
author | Ms2ger <ms2ger@gmail.com> | 2014-03-08 20:12:16 +0100 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2014-03-09 18:51:38 +0100 |
commit | 84b0f45ed5d1e6fdff24c195699218c8743b561e (patch) | |
tree | 4f49bd39a063c765a3f1a4c147fc8bae785d7bef /src/components/script/script_task.rs | |
parent | 9fbfb1909cde6225279730f123f312c270155d19 (diff) | |
download | servo-84b0f45ed5d1e6fdff24c195699218c8743b561e.tar.gz servo-84b0f45ed5d1e6fdff24c195699218c8743b561e.zip |
Use FooValue() functions.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r-- | src/components/script/script_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs index d4215b46c28..a2e2b3fc9fd 100644 --- a/src/components/script/script_task.rs +++ b/src/components/script/script_task.rs @@ -32,10 +32,10 @@ use layout_interface; use extra::url::Url; use geom::point::Point2D; use geom::size::Size2D; -use js::JSVAL_NULL; use js::global::DEBUG_FNS; use js::glue::RUST_JSVAL_TO_OBJECT; use js::jsapi::{JSObject, JS_InhibitGC, JS_AllowGC, JS_CallFunctionValue}; +use js::jsval::NullValue; use js::rust::{Compartment, Cx, CxUtils, RtUtils}; use js; use servo_msg::compositor_msg::{FinishedLoading, Loading, PerformingLayout, ScriptListener}; @@ -659,7 +659,7 @@ impl ScriptTask { }; // TODO: Support extra arguments. This requires passing a `*JSVal` array as `argv`. - let rval = JSVAL_NULL; + let rval = NullValue(); let cx = js_info.get().get_ref().js_context.borrow().ptr; with_gc_enabled(cx, || { unsafe { |