diff options
author | Josh Matthews <josh@joshmatthews.net> | 2023-02-16 23:33:24 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2023-05-20 11:05:10 -0400 |
commit | 9ea1399c306af8f212e81c3dedd9601aa4fe821f (patch) | |
tree | a060cdbbee3652f39ef280b082f098d0b2747fc9 /components/script/script_module.rs | |
parent | 5e5669b9457df0f94c4d64a8f29a8c5ac4a271c8 (diff) | |
download | servo-9ea1399c306af8f212e81c3dedd9601aa4fe821f.tar.gz servo-9ea1399c306af8f212e81c3dedd9601aa4fe821f.zip |
Fix formatting.
Diffstat (limited to 'components/script/script_module.rs')
-rw-r--r-- | components/script/script_module.rs | 13 |
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( |