From f3f3e3cdc3c36372267cec4d1bad8a9ddd31891e Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 6 Apr 2022 19:22:14 -0400 Subject: [PATCH] LibJS: Remove outdated FIXME from String.prototype.localeCompare This FIXME was addressed in 0975eba7241ff44fcfc5f3be074a09b353ebae5f. --- Userland/Libraries/LibJS/Runtime/StringPrototype.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/StringPrototype.cpp b/Userland/Libraries/LibJS/Runtime/StringPrototype.cpp index 22a8664251..97d9e7667b 100644 --- a/Userland/Libraries/LibJS/Runtime/StringPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/StringPrototype.cpp @@ -1037,7 +1037,6 @@ JS_DEFINE_NATIVE_FUNCTION(StringPrototype::sup) // 19.1.1 String.prototype.localeCompare ( that [ , locales [ , options ] ] ), https://tc39.es/ecma402/#sup-String.prototype.localeCompare JS_DEFINE_NATIVE_FUNCTION(StringPrototype::locale_compare) { - // FIXME: This can throw (spec issue) // 1. Let O be ? RequireObjectCoercible(this value). auto object = TRY(require_object_coercible(global_object, vm.this_value(global_object)));