summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.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/WebAssemblyMemoryConstructor.cpp
parentfd8ec1fffa587913e3079a2964c1d4a5076b2158 (diff)
downloadserenity-c59b97043eaf72cdb757262354ddb34b79b127d2.zip
LibWeb: Use ErrorType::NotAnObjectOfType instead of NotA
Diffstat (limited to 'Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp')
-rw-r--r--Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp
index 338dbcc959..deb27bd3bf 100644
--- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp
+++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp
@@ -40,7 +40,7 @@ JS::Value WebAssemblyMemoryConstructor::construct(FunctionObject&)
auto maximum_value = descriptor->get_without_side_effects("maximum");
if (initial_value.is_empty()) {
- vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "Number");
+ vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "Number");
return {};
}