aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/timers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r--components/script/timers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs
index ebc0bd8874c..5078bc1e788 100644
--- a/components/script/timers.rs
+++ b/components/script/timers.rs
@@ -540,7 +540,7 @@ impl JsTimerTask {
match self.callback {
InternalTimerCallback::StringTimerCallback(ref code_str) => {
let global = this.global();
- let cx = global.get_cx();
+ let cx = GlobalScope::get_cx();
rooted!(in(*cx) let mut rval = UndefinedValue());
// FIXME(cybai): Use base url properly by saving private reference for timers (#27260)
global.evaluate_js_on_global_with_result(