mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
LibWeb: Use ErrorType::NotAnObjectOfType instead of NotA
This commit is contained in:
committed by
Andreas Kling
parent
fd8ec1fffa
commit
c59b97043e
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user