From afeb7273cceed08019973a35d7f042f63b5f1f57 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 13 Jan 2023 10:29:02 -0500 Subject: LibJS+Everywhere: Rename Value::to_string to to_deprecated_string --- Tests/LibWasm/test-wasm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/LibWasm/test-wasm.cpp') diff --git a/Tests/LibWasm/test-wasm.cpp b/Tests/LibWasm/test-wasm.cpp index 44bc43d7a5..1e3ebf988f 100644 --- a/Tests/LibWasm/test-wasm.cpp +++ b/Tests/LibWasm/test-wasm.cpp @@ -15,7 +15,7 @@ TEST_ROOT("Userland/Libraries/LibWasm/Tests"); TESTJS_GLOBAL_FUNCTION(read_binary_wasm_file, readBinaryWasmFile) { 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 = Core::Stream::File::open(filename, Core::Stream::OpenMode::Read); if (file.is_error()) return vm.throw_completion(strerror(file.error().code())); @@ -159,7 +159,7 @@ void WebAssemblyModule::initialize(JS::Realm& realm) JS_DEFINE_NATIVE_FUNCTION(WebAssemblyModule::get_export) { - auto name = TRY(vm.argument(0).to_string(vm)); + auto name = TRY(vm.argument(0).to_deprecated_string(vm)); auto this_value = vm.this_value(); auto* object = TRY(this_value.to_object(vm)); if (!is(object)) -- cgit v1.2.3