1
Fork 0
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:
Timothy Flynn 2022-03-28 09:45:00 -04:00 committed by Linus Groh
parent 36bff95f15
commit 0975eba724

View file

@ -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).