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.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/components/script/script_module.rs b/components/script/script_module.rs
index 7dc5c13ab99..9ba8dd523a0 100644
--- a/components/script/script_module.rs
+++ b/components/script/script_module.rs
@@ -424,8 +424,7 @@ impl ModuleTree {
let cx = GlobalScope::get_cx();
let _ac = JSAutoRealm::new(*cx, *global.reflector().get_jsobject());
- let compile_options =
- unsafe { CompileOptionsWrapper::new(*cx, url.as_str(), 1) };
+ let compile_options = unsafe { CompileOptionsWrapper::new(*cx, url.as_str(), 1) };
unsafe {
rooted!(in(*cx) let mut module_script = CompileModule1(
@@ -438,10 +437,7 @@ impl ModuleTree {
warn!("fail to compile module script of {}", url);
rooted!(in(*cx) let mut exception = UndefinedValue());
- assert!(JS_GetPendingException(
- *cx,
- &mut exception.handle_mut()
- ));
+ assert!(JS_GetPendingException(*cx, &mut exception.handle_mut()));
JS_ClearPendingException(*cx);
return Err(RethrowError(RootedTraceableBox::from_box(Heap::boxed(
@@ -483,10 +479,7 @@ impl ModuleTree {
warn!("fail to link & instantiate module");
rooted!(in(*cx) let mut exception = UndefinedValue());
- assert!(JS_GetPendingException(
- *cx,
- &mut exception.handle_mut()
- ));
+ assert!(JS_GetPendingException(*cx, &mut exception.handle_mut()));
JS_ClearPendingException(*cx);
Err(RethrowError(RootedTraceableBox::from_box(Heap::boxed(