mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
LibJS: Remove the VM parameter from the NumberToString AO
This will be needed by Value::to_string_without_side_effects, which can be called in contexts without a VM (e.g. in AK::Format specializations). So to_string_without_side_effects will need to be callable without a VM, thus NumberToString must be as well.
This commit is contained in:
parent
7a7a649f5b
commit
dc4207323b
Notes:
sideshowbarker
2024-07-17 09:39:38 +09:00
Author: https://github.com/trflynn89
Commit: dc4207323b
Pull-request: https://github.com/SerenityOS/serenity/pull/17461
Reviewed-by: https://github.com/linusg
3 changed files with 7 additions and 7 deletions
|
@ -561,7 +561,7 @@ enum class NumberToStringMode {
|
|||
WithExponent,
|
||||
WithoutExponent,
|
||||
};
|
||||
ThrowCompletionOr<String> number_to_string(VM& vm, double, NumberToStringMode = NumberToStringMode::WithExponent);
|
||||
ErrorOr<String> number_to_string(double, NumberToStringMode = NumberToStringMode::WithExponent);
|
||||
DeprecatedString number_to_deprecated_string(double, NumberToStringMode = NumberToStringMode::WithExponent);
|
||||
Optional<Value> string_to_number(StringView);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue