summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-02-19 17:35:18 +0200
committerLinus Groh <mail@linusgroh.de>2022-02-19 18:06:39 +0000
commitde238ff351de34539e362226bdd0c3696183ec6c (patch)
treeb21274d74f6957525f937995a95b6ea19fd74200 /Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp
parenta4bc7e2d96b54369e16f15ad9a2d893e9a6669ba (diff)
downloadserenity-de238ff351de34539e362226bdd0c3696183ec6c.zip
LibJS: Use FunctionConstructor as the proto of AsyncFunctionConstructor
We were accidentally using FunctionPrototype instead.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp b/Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp
index 96759c7d81..2ba804870d 100644
--- a/Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp
@@ -13,7 +13,7 @@
namespace JS {
AsyncFunctionConstructor::AsyncFunctionConstructor(GlobalObject& global_object)
- : NativeFunction(vm().names.AsyncFunction.as_string(), *global_object.function_prototype())
+ : NativeFunction(vm().names.AsyncFunction.as_string(), *global_object.function_constructor())
{
}