mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Use ErrorType::NotAnObjectOfType instead of NotA
This commit is contained in:
committed by
Andreas Kling
parent
fd8ec1fffa
commit
c59b97043e
Notes:
sideshowbarker
2024-07-18 04:14:36 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/c59b97043ea Pull-request: https://github.com/SerenityOS/serenity/pull/9975 Reviewed-by: https://github.com/linusg ✅
@@ -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 {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user