diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-09-11 15:28:51 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 00:16:39 +0200 |
commit | c59b97043eaf72cdb757262354ddb34b79b127d2 (patch) | |
tree | 7707133c78319d05e37b596fa539d22ae4f9a7cf /Userland/Libraries/LibWeb/WebAssembly/WebAssemblyMemoryConstructor.cpp | |
parent | fd8ec1fffa587913e3079a2964c1d4a5076b2158 (diff) | |
download | serenity-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.cpp | 2 |
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 {}; } |