LibJS: Convert AggregateError::create() to NonnullGCPtr

This commit is contained in:
Linus Groh 2022-12-13 20:49:49 +00:00
commit 0c50751c13
Notes: sideshowbarker 2024-07-17 10:05:47 +09:00
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)