mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:18:12 +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
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