summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/AggregateError.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AggregateError.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/AggregateError.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AggregateError.cpp b/Userland/Libraries/LibJS/Runtime/AggregateError.cpp
index 3048d5262e..eb530ae04b 100644
--- a/Userland/Libraries/LibJS/Runtime/AggregateError.cpp
+++ b/Userland/Libraries/LibJS/Runtime/AggregateError.cpp
@@ -10,9 +10,9 @@
namespace JS {
-AggregateError* AggregateError::create(GlobalObject& global_object)
+AggregateError* AggregateError::create(Realm& realm)
{
- return global_object.heap().allocate<AggregateError>(global_object, *global_object.aggregate_error_prototype());
+ return realm.heap().allocate<AggregateError>(realm.global_object(), *realm.global_object().aggregate_error_prototype());
}
AggregateError::AggregateError(Object& prototype)