From 6ec0939a2248e0e092242076ed5b2cd2486c736c Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Thu, 23 Oct 2014 14:44:17 -0700 Subject: Dynamically check DOMRefCell access from layout in debug builds --- components/script/script_task.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/script/script_task.rs') diff --git a/components/script/script_task.rs b/components/script/script_task.rs index f07fff94983..398e9b8d4db 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -54,6 +54,7 @@ use servo_net::resource_task::ResourceTask; use servo_util::geometry::to_frac_px; use servo_util::smallvec::{SmallVec1, SmallVec}; use servo_util::task::spawn_named_with_send_on_failure; +use servo_util::task_state; use geom::point::Point2D; use js::jsapi::{JS_SetWrapObjectCallbacks, JS_SetGCZeal, JS_DEFAULT_ZEAL_FREQ, JS_GC}; @@ -262,7 +263,7 @@ impl ScriptTaskFactory for ScriptTask { let ConstellationChan(const_chan) = constellation_chan.clone(); let (script_chan, script_port) = channel(); let layout_chan = LayoutChan(layout_chan.sender()); - spawn_named_with_send_on_failure("ScriptTask", proc() { + spawn_named_with_send_on_failure("ScriptTask", task_state::Script, proc() { let script_task = ScriptTask::new(id, compositor as Box, layout_chan, -- cgit v1.2.3