1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:07:34 +00:00

LibJS: Remove outdated FIXME from String.prototype.localeCompare

This FIXME was addressed in 0975eba724.
This commit is contained in:
Timothy Flynn 2022-04-06 19:22:14 -04:00 committed by Tim Flynn
parent 45d73f8ef9
commit f3f3e3cdc3

View file

@ -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 // 19.1.1 String.prototype.localeCompare ( that [ , locales [ , options ] ] ), https://tc39.es/ecma402/#sup-String.prototype.localeCompare
JS_DEFINE_NATIVE_FUNCTION(StringPrototype::locale_compare) 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))); auto object = TRY(require_object_coercible(global_object, vm.this_value(global_object)));