mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 01:42:54 +00:00
LibJS: Convert to_object() to ThrowCompletionOr
This commit is contained in:
parent
9eb065a1f6
commit
52976bfac6
Notes:
sideshowbarker
2024-07-18 02:47:31 +09:00
Author: https://github.com/linusg
Commit: 52976bfac6
Pull-request: https://github.com/SerenityOS/serenity/pull/10452
Reviewed-by: https://github.com/IdanHo ✅
45 changed files with 239 additions and 490 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue