aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-03-09 11:29:23 +0100
committerMs2ger <ms2ger@gmail.com>2014-03-09 18:52:05 +0100
commit9709dce07a56029edf2b812f371e7e07a69ef4ed (patch)
treee0173e82351bcc08ee4bcfd63e2faab1b6578421 /src/components/script/script_task.rs
parent84b0f45ed5d1e6fdff24c195699218c8743b561e (diff)
downloadservo-9709dce07a56029edf2b812f371e7e07a69ef4ed.tar.gz
servo-9709dce07a56029edf2b812f371e7e07a69ef4ed.zip
Use the JSVal member functions to replace JSVAL_IS_* and JSVAL_TO_*.
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index a2e2b3fc9fd..d4561ebc21b 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -33,7 +33,6 @@ use extra::url::Url;
use geom::point::Point2D;
use geom::size::Size2D;
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};
@@ -651,9 +650,7 @@ impl ScriptTask {
window.get_mut().active_timers.remove(&TimerHandle { handle: timer_data.handle, cancel_chan: None });
let js_info = page.js_info();
let this_value = if timer_data.args.len() > 0 {
- unsafe {
- RUST_JSVAL_TO_OBJECT(timer_data.args[0])
- }
+ fail!("NYI")
} else {
js_info.get().get_ref().js_compartment.borrow().global_obj.borrow().ptr
};