summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-09-11 15:28:51 -0400
committerAndreas Kling <kling@serenityos.org>2021-09-12 00:16:39 +0200
commitc59b97043eaf72cdb757262354ddb34b79b127d2 (patch)
tree7707133c78319d05e37b596fa539d22ae4f9a7cf /Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp
parentfd8ec1fffa587913e3079a2964c1d4a5076b2158 (diff)
downloadserenity-c59b97043eaf72cdb757262354ddb34b79b127d2.zip
LibWeb: Use ErrorType::NotAnObjectOfType instead of NotA
Diffstat (limited to 'Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp')
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp
index aabe0d27c6..1f1459ef9a 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp
@@ -428,7 +428,7 @@ Optional<Wasm::Value> to_webassembly_value(JS::Value value, const Wasm::ValueTyp
}
}
- vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAn, "Exported function");
+ vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "Exported function");
return {};
}
case Wasm::ValueType::ExternReference: