mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
LibJS: Convert get_this_binding() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
parent
4f03138971
commit
0aa24f4ce5
8 changed files with 21 additions and 16 deletions
|
@ -505,7 +505,7 @@ void VM::throw_exception(Exception& exception)
|
|||
Value VM::resolve_this_binding(GlobalObject& global_object)
|
||||
{
|
||||
auto& environment = get_this_environment(*this);
|
||||
return environment.get_this_binding(global_object);
|
||||
return TRY_OR_DISCARD(environment.get_this_binding(global_object));
|
||||
}
|
||||
|
||||
String VM::join_arguments(size_t start_index) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue