mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37: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
|
@ -1033,7 +1033,7 @@ Reference MemberExpression::to_reference(Interpreter& interpreter, GlobalObject&
|
|||
// 1. Let env be GetThisEnvironment().
|
||||
auto& environment = get_this_environment(interpreter.vm());
|
||||
// 2. Let actualThis be ? env.GetThisBinding().
|
||||
auto actual_this = environment.get_this_binding(global_object);
|
||||
auto actual_this = TRY_OR_DISCARD(environment.get_this_binding(global_object));
|
||||
|
||||
StringOrSymbol property_key;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue