mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +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
|
@ -43,7 +43,7 @@ ThrowCompletionOr<Value> FunctionEnvironment::get_super_base() const
|
|||
// 3. Assert: Type(home) is Object.
|
||||
|
||||
// 4. Return ? home.[[GetPrototypeOf]]().
|
||||
return { TRY(home_object->internal_get_prototype_of()) };
|
||||
return TRY(home_object->internal_get_prototype_of());
|
||||
}
|
||||
|
||||
// 9.1.1.3.2 HasThisBinding ( ), https://tc39.es/ecma262/#sec-function-environment-records-hasthisbinding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue