mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
LibJS: Use implicit ThrowCompletionOr<T> constructor where possible
Luckily this is not very widespread yet as most of it would happen in the various JS functions instead of AOs.
This commit is contained in:
parent
894834b5d5
commit
0881f8160f
12 changed files with 25 additions and 25 deletions
|
@ -272,7 +272,7 @@ ThrowCompletionOr<Value> get_wrapped_value(GlobalObject& global_object, Realm& c
|
|||
return vm.throw_completion<TypeError>(global_object, ErrorType::ShadowRealmWrappedValueNonFunctionObject, value);
|
||||
|
||||
// b. Return ! WrappedFunctionCreate(callerRealm, value).
|
||||
return { WrappedFunction::create(global_object, caller_realm, value.as_function()) };
|
||||
return WrappedFunction::create(global_object, caller_realm, value.as_function());
|
||||
}
|
||||
|
||||
// 3. Return value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue