mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibJS: Convert resolve_this_binding() to ThrowCompletionOr
Also add spec comments.
This commit is contained in:
parent
dc03529ffd
commit
a24df37713
Notes:
sideshowbarker
2024-07-17 21:53:17 +09:00
Author: https://github.com/davidot
Commit: a24df37713
Pull-request: https://github.com/SerenityOS/serenity/pull/11514
Reviewed-by: https://github.com/linusg ✅
4 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue