diff options
author | Linus Groh <mail@linusgroh.de> | 2021-07-05 12:31:03 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-05 12:32:51 +0100 |
commit | 79d8326370caf535d4f46689c4c1ff1a5ccacbd6 (patch) | |
tree | 683a2a985ab3f0c22dabf5e40d68c5c27d7aee06 /Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp | |
parent | d713a84851ffab2a7fdee6ce17ad53dd3a6b0109 (diff) | |
download | serenity-79d8326370caf535d4f46689c4c1ff1a5ccacbd6.zip |
LibWeb: Use "WebAssembly.Foo" in exception error messages
Not just "Foo" or "WebAssemblyFoo". This is how it's accessed from the
outside (JS).
Also fix one case of "not an" => "not a".
Diffstat (limited to 'Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp index 7ec16d6862..b74870e368 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyInstanceConstructor.cpp @@ -26,7 +26,7 @@ WebAssemblyInstanceConstructor::~WebAssemblyInstanceConstructor() JS::Value WebAssemblyInstanceConstructor::call() { - vm().throw_exception<JS::TypeError>(global_object(), JS::ErrorType::ConstructorWithoutNew, "WebAssemblyInstance"); + vm().throw_exception<JS::TypeError>(global_object(), JS::ErrorType::ConstructorWithoutNew, "WebAssembly.Instance"); return {}; } |