1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

LibJS: Convert resolve_this_binding() to ThrowCompletionOr

Also add spec comments.
This commit is contained in:
davidot 2021-12-30 23:00:37 +01:00 committed by Linus Groh
parent dc03529ffd
commit a24df37713
4 changed files with 13 additions and 5 deletions

View file

@ -2252,7 +2252,7 @@ Value SpreadExpression::execute(Interpreter& interpreter, GlobalObject& global_o
Value ThisExpression::execute(Interpreter& interpreter, GlobalObject& global_object) const
{
InterpreterNodeScope node_scope { interpreter, *this };
return interpreter.vm().resolve_this_binding(global_object);
return TRY_OR_DISCARD(interpreter.vm().resolve_this_binding(global_object));
}
void ThisExpression::dump(int indent) const