diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Promise.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Promise.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Promise.cpp b/Userland/Libraries/LibJS/Runtime/Promise.cpp index e36b9195eb..d114b094d7 100644 --- a/Userland/Libraries/LibJS/Runtime/Promise.cpp +++ b/Userland/Libraries/LibJS/Runtime/Promise.cpp @@ -43,7 +43,7 @@ ThrowCompletionOr<Object*> promise_resolve(VM& vm, Object& constructor, Value va Promise* Promise::create(Realm& realm) { - return realm.heap().allocate<Promise>(realm, *realm.global_object().promise_prototype()); + return realm.heap().allocate<Promise>(realm, *realm.intrinsics().promise_prototype()); } // 27.2 Promise Objects, https://tc39.es/ecma262/#sec-promise-objects |