mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibJS: Port (most of) String.prototype to String
The locations that haven't been ported have a much wider footprint than just the String.prototype files, so they've been left alone for now.
This commit is contained in:
parent
ceaec41726
commit
9f78e8728a
Notes:
sideshowbarker
2024-07-17 01:40:40 +09:00
Author: https://github.com/trflynn89
Commit: 9f78e8728a
Pull-request: https://github.com/SerenityOS/serenity/pull/17014
Reviewed-by: https://github.com/linusg ✅
6 changed files with 73 additions and 70 deletions
|
@ -47,7 +47,7 @@ enum class CanonicalIndexMode {
|
|||
IgnoreNumericRoundtrip,
|
||||
};
|
||||
CanonicalIndex canonical_numeric_index_string(PropertyKey const&, CanonicalIndexMode needs_numeric);
|
||||
ThrowCompletionOr<DeprecatedString> get_substitution(VM&, Utf16View const& matched, Utf16View const& str, size_t position, Span<Value> captures, Value named_captures, Value replacement);
|
||||
ThrowCompletionOr<String> get_substitution(VM&, Utf16View const& matched, Utf16View const& str, size_t position, Span<Value> captures, Value named_captures, Value replacement);
|
||||
|
||||
enum class CallerMode {
|
||||
Strict,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue