diff options
Diffstat (limited to 'components/script/timers.rs')
-rw-r--r-- | components/script/timers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/timers.rs b/components/script/timers.rs index d0cb849b0a8..d54a77c9951 100644 --- a/components/script/timers.rs +++ b/components/script/timers.rs @@ -238,7 +238,7 @@ impl TimerManager { let _ = function.Call_(this, data.args, Report); } TimerCallback::StringTimerCallback(code_str) => { - this.evaluate_js_on_global_with_result(code_str.as_slice()); + this.evaluate_js_on_global_with_result(&code_str); } }; |