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/WebAssemblyObject.cpp | |
parent | fd8ec1fffa587913e3079a2964c1d4a5076b2158 (diff) | |
download | serenity-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.cpp | 2 |
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: |