1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +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:
Linus Groh 2021-10-20 19:17:45 +01:00
parent 894834b5d5
commit 0881f8160f
12 changed files with 25 additions and 25 deletions

View file

@ -35,7 +35,7 @@ void GlobalEnvironment::visit_edges(Cell::Visitor& visitor)
ThrowCompletionOr<Value> GlobalEnvironment::get_this_binding(GlobalObject&) const
{
// 1. Return envRec.[[GlobalThisValue]].
return { m_global_this_value };
return m_global_this_value;
}
// 9.1.1.4.1 HasBinding ( N ), https://tc39.es/ecma262/#sec-global-environment-records-hasbinding-n