mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 07:07:49 +00:00
LibJS: Mark an invocation to RequireObjectCoercible as fallible
This is an editorial change in the Intl spec. See:
6939b44
This commit is contained in:
parent
36bff95f15
commit
0975eba724
Notes:
sideshowbarker
2024-07-17 16:29:30 +09:00
Author: https://github.com/trflynn89
Commit: 0975eba724
Pull-request: https://github.com/SerenityOS/serenity/pull/13315
Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -1038,7 +1038,7 @@ JS_DEFINE_NATIVE_FUNCTION(StringPrototype::sup)
|
|||
JS_DEFINE_NATIVE_FUNCTION(StringPrototype::locale_compare)
|
||||
{
|
||||
// FIXME: This can throw (spec issue)
|
||||
// 1. Let O be RequireObjectCoercible(this value).
|
||||
// 1. Let O be ? RequireObjectCoercible(this value).
|
||||
auto object = TRY(require_object_coercible(global_object, vm.this_value(global_object)));
|
||||
|
||||
// 2. Let S be ? ToString(O).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue