diff options
author | Linus Groh <mail@linusgroh.de> | 2022-12-12 21:18:16 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-12 21:26:12 +0000 |
commit | 172738222c101d06cff683c95c95d3d6e0770cbc (patch) | |
tree | 9933c11e4abb40410e59dbe174ca60575e05329c /Userland | |
parent | 19ea0d8dcf7b0b34c483c81f5c547e9521db7986 (diff) | |
download | serenity-172738222c101d06cff683c95c95d3d6e0770cbc.zip |
LibJS: Update get_substitution() section number & parameter name
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp index 48b09df586..ae66f84085 100644 --- a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp @@ -1227,10 +1227,10 @@ CanonicalIndex canonical_numeric_index_string(PropertyKey const& property_key, C return CanonicalIndex(CanonicalIndex::Type::Undefined, 0); } -// 22.1.3.17.1 GetSubstitution ( matched, str, position, captures, namedCaptures, replacement ), https://tc39.es/ecma262/#sec-getsubstitution -ThrowCompletionOr<DeprecatedString> get_substitution(VM& vm, Utf16View const& matched, Utf16View const& str, size_t position, Span<Value> captures, Value named_captures, Value replacement) +// 22.1.3.18.1 GetSubstitution ( matched, str, position, captures, namedCaptures, replacementTemplate ), https://tc39.es/ecma262/#sec-getsubstitution +ThrowCompletionOr<DeprecatedString> get_substitution(VM& vm, Utf16View const& matched, Utf16View const& str, size_t position, Span<Value> captures, Value named_captures, Value replacement_template) { - auto replace_string = TRY(replacement.to_utf16_string(vm)); + auto replace_string = TRY(replacement_template.to_utf16_string(vm)); auto replace_view = replace_string.view(); Vector<u16, 1> result; |