1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-29 20:12:11 +00:00

LibJS: Convert to_object() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-10-12 19:24:57 +01:00
parent 9eb065a1f6
commit 52976bfac6
45 changed files with 239 additions and 490 deletions

View file

@ -644,7 +644,7 @@ void ECMAScriptFunctionObject::ordinary_call_bind_this(ExecutionContext& callee_
// b. Else,
else {
// i. Let thisValue be ! ToObject(thisArgument).
this_value = this_argument.to_object(global_object());
this_value = MUST(this_argument.to_object(global_object()));
// ii. NOTE: ToObject produces wrapper objects using calleeRealm.
// FIXME: It currently doesn't, as we pass the function's global object.