mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibJS: Pass prototype to Error constructors
This commit is contained in:
@@ -154,7 +154,7 @@ public:
|
||||
template<typename T, typename... Args>
|
||||
Value throw_exception(Args&&... args)
|
||||
{
|
||||
return throw_exception(heap().allocate<T>(forward<Args>(args)...));
|
||||
return throw_exception(T::create(global_object(), forward<Args>(args)...));
|
||||
}
|
||||
|
||||
Value throw_exception(Exception*);
|
||||
|
||||
Reference in New Issue
Block a user