1
Fork 0
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:
Linus Groh 2022-12-13 20:49:49 +00:00
parent 2b92c15b34
commit 0c50751c13
4 changed files with 6 additions and 6 deletions

View file

@ -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)