diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-01-13 10:29:02 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-15 01:00:20 +0000 |
commit | afeb7273cceed08019973a35d7f042f63b5f1f57 (patch) | |
tree | 6bbefe06bdd0b26f689cfacb284284134545b61a /Tests/LibWasm/test-wasm.cpp | |
parent | 8f5bdce8e7a1121578e262b897c56a1848328a90 (diff) | |
download | serenity-afeb7273cceed08019973a35d7f042f63b5f1f57.zip |
LibJS+Everywhere: Rename Value::to_string to to_deprecated_string
Diffstat (limited to 'Tests/LibWasm/test-wasm.cpp')
-rw-r--r-- | Tests/LibWasm/test-wasm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<JS::TypeError>(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<WebAssemblyModule>(object)) |