LibJS: Add FIXME to removed SplitMatch AO

This commit is contained in:
Linus Groh 2022-12-01 11:38:41 +01:00
parent e960f9549e
commit 24237ae5bf
Notes: sideshowbarker 2024-07-17 03:49:13 +09:00

View file

@ -46,6 +46,7 @@ static ThrowCompletionOr<Utf16String> utf16_string_from(VM& vm)
}
// 22.1.3.21.1 SplitMatch ( S, q, R ), https://tc39.es/ecma262/#sec-splitmatch
// FIXME: This no longer exists in the spec!
static Optional<size_t> split_match(Utf16View const& haystack, size_t start, Utf16View const& needle)
{
auto r = needle.length_in_code_units();