diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-02-19 17:35:18 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-19 18:06:39 +0000 |
commit | de238ff351de34539e362226bdd0c3696183ec6c (patch) | |
tree | b21274d74f6957525f937995a95b6ea19fd74200 /Userland/Libraries/LibJS/Runtime | |
parent | a4bc7e2d96b54369e16f15ad9a2d893e9a6669ba (diff) | |
download | serenity-de238ff351de34539e362226bdd0c3696183ec6c.zip |
LibJS: Use FunctionConstructor as the proto of AsyncFunctionConstructor
We were accidentally using FunctionPrototype instead.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp | 2 |
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()) { } |