summaryrefslogtreecommitdiff
path: root/Userland/Utilities/js.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-01-13 10:29:02 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-15 01:00:20 +0000
commitafeb7273cceed08019973a35d7f042f63b5f1f57 (patch)
tree6bbefe06bdd0b26f689cfacb284284134545b61a /Userland/Utilities/js.cpp
parent8f5bdce8e7a1121578e262b897c56a1848328a90 (diff)
downloadserenity-afeb7273cceed08019973a35d7f042f63b5f1f57.zip
LibJS+Everywhere: Rename Value::to_string to to_deprecated_string
Diffstat (limited to 'Userland/Utilities/js.cpp')
-rw-r--r--Userland/Utilities/js.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp
index c64af942a4..e253dd3faf 100644
--- a/Userland/Utilities/js.cpp
+++ b/Userland/Utilities/js.cpp
@@ -345,7 +345,7 @@ static JS::ThrowCompletionOr<JS::Value> load_ini_impl(JS::VM& vm)
{
auto& realm = *vm.current_realm();
- auto filename = TRY(vm.argument(0).to_string(vm));
+ auto filename = TRY(vm.argument(0).to_deprecated_string(vm));
auto file_or_error = Core::Stream::File::open(filename, Core::Stream::OpenMode::Read);
if (file_or_error.is_error())
return vm.throw_completion<JS::Error>(DeprecatedString::formatted("Failed to open '{}': {}", filename, file_or_error.error()));
@@ -365,7 +365,7 @@ static JS::ThrowCompletionOr<JS::Value> load_ini_impl(JS::VM& vm)
static JS::ThrowCompletionOr<JS::Value> load_json_impl(JS::VM& vm)
{
- auto filename = TRY(vm.argument(0).to_string(vm));
+ auto filename = TRY(vm.argument(0).to_deprecated_string(vm));
auto file_or_error = Core::Stream::File::open(filename, Core::Stream::OpenMode::Read);
if (file_or_error.is_error())
return vm.throw_completion<JS::Error>(DeprecatedString::formatted("Failed to open '{}': {}", filename, file_or_error.error()));