summaryrefslogtreecommitdiff
path: root/Tests/LibJS
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-02-12 20:38:28 -0500
committerLinus Groh <mail@linusgroh.de>2023-02-16 14:32:22 +0100
commitb245300ba132ea3bce21c82ea585ce8ea85cca40 (patch)
tree3fc95ce9b306dac23d3486eeabc60bb9a53c57cc /Tests/LibJS
parent7fc7d4f8c642d776488a52758e428b33fd8e6693 (diff)
downloadserenity-b245300ba132ea3bce21c82ea585ce8ea85cca40.zip
LibJS+Everywhere: Deprecate Value::to_string_without_side_effects
Diffstat (limited to 'Tests/LibJS')
-rw-r--r--Tests/LibJS/test-js.cpp2
-rw-r--r--Tests/LibJS/test262-runner.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/Tests/LibJS/test-js.cpp b/Tests/LibJS/test-js.cpp
index 4ece7c4dfa..62478a46d1 100644
--- a/Tests/LibJS/test-js.cpp
+++ b/Tests/LibJS/test-js.cpp
@@ -53,7 +53,7 @@ TESTJS_GLOBAL_FUNCTION(mark_as_garbage, markAsGarbage)
{
auto argument = vm.argument(0);
if (!argument.is_string())
- return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAString, argument.to_string_without_side_effects());
+ return vm.throw_completion<JS::TypeError>(JS::ErrorType::NotAString, argument.to_deprecated_string_without_side_effects());
auto& variable_name = argument.as_string();
diff --git a/Tests/LibJS/test262-runner.cpp b/Tests/LibJS/test262-runner.cpp
index 76ac7167fe..3765d79acf 100644
--- a/Tests/LibJS/test262-runner.cpp
+++ b/Tests/LibJS/test262-runner.cpp
@@ -112,22 +112,22 @@ static Result<void, TestError> run_program(InterpreterT& interpreter, ScriptOrMo
auto name = object.get_without_side_effects("name");
if (!name.is_empty() && !name.is_accessor()) {
- error.type = name.to_string_without_side_effects();
+ error.type = name.to_deprecated_string_without_side_effects();
} else {
auto constructor = object.get_without_side_effects("constructor");
if (constructor.is_object()) {
name = constructor.as_object().get_without_side_effects("name");
if (!name.is_undefined())
- error.type = name.to_string_without_side_effects();
+ error.type = name.to_deprecated_string_without_side_effects();
}
}
auto message = object.get_without_side_effects("message");
if (!message.is_empty() && !message.is_accessor())
- error.details = message.to_string_without_side_effects();
+ error.details = message.to_deprecated_string_without_side_effects();
}
if (error.type.is_empty())
- error.type = error_value.to_string_without_side_effects();
+ error.type = error_value.to_deprecated_string_without_side_effects();
return error;
}
return {};