mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
LibJS: Convert AggregateError::create() to NonnullGCPtr
This commit is contained in:
parent
2b92c15b34
commit
0c50751c13
4 changed files with 6 additions and 6 deletions
|
@ -10,9 +10,9 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
AggregateError* AggregateError::create(Realm& realm)
|
||||
NonnullGCPtr<AggregateError> AggregateError::create(Realm& realm)
|
||||
{
|
||||
return realm.heap().allocate<AggregateError>(realm, *realm.intrinsics().aggregate_error_prototype());
|
||||
return *realm.heap().allocate<AggregateError>(realm, *realm.intrinsics().aggregate_error_prototype());
|
||||
}
|
||||
|
||||
AggregateError::AggregateError(Object& prototype)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue