From 0975eba7241ff44fcfc5f3be074a09b353ebae5f Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 28 Mar 2022 09:45:00 -0400 Subject: [PATCH] LibJS: Mark an invocation to RequireObjectCoercible as fallible This is an editorial change in the Intl spec. See: https://github.com/tc39/ecma402/commit/6939b44 --- Userland/Libraries/LibJS/Runtime/StringPrototype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/StringPrototype.cpp b/Userland/Libraries/LibJS/Runtime/StringPrototype.cpp index bdda2232f8..2826c9d292 100644 --- a/Userland/Libraries/LibJS/Runtime/StringPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/StringPrototype.cpp @@ -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).