aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_module.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_module.rs')
-rw-r--r--components/script/script_module.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_module.rs b/components/script/script_module.rs
index d6fe61e9653..870c44a39a7 100644
--- a/components/script/script_module.rs
+++ b/components/script/script_module.rs
@@ -81,7 +81,7 @@ unsafe fn gen_type_error(global: &GlobalScope, string: String) -> RethrowError {
rooted!(in(*GlobalScope::get_cx()) let mut thrown = UndefinedValue());
Error::Type(string).to_jsval(*GlobalScope::get_cx(), global, thrown.handle_mut());
- return RethrowError(RootedTraceableBox::from_box(Heap::boxed(thrown.get())));
+ RethrowError(RootedTraceableBox::from_box(Heap::boxed(thrown.get())))
}
#[derive(JSTraceable)]