diff options
Diffstat (limited to 'components/script/dom/console.rs')
-rw-r--r-- | components/script/dom/console.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/console.rs b/components/script/dom/console.rs index 737bb35b926..6fe07534146 100644 --- a/components/script/dom/console.rs +++ b/components/script/dom/console.rs @@ -73,7 +73,7 @@ where unsafe fn handle_value_to_string(cx: *mut jsapi::JSContext, value: HandleValue) -> DOMString { rooted!(in(cx) let mut js_string = std::ptr::null_mut::<jsapi::JSString>()); js_string.set(JS_ValueToSource(cx, value)); - return jsstring_to_str(cx, *js_string); + jsstring_to_str(cx, *js_string) } #[allow(unsafe_code)] |