From de238ff351de34539e362226bdd0c3696183ec6c Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sat, 19 Feb 2022 17:35:18 +0200 Subject: LibJS: Use FunctionConstructor as the proto of AsyncFunctionConstructor We were accidentally using FunctionPrototype instead. --- Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibJS/Runtime/AsyncFunctionConstructor.cpp') 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()) { } -- cgit v1.2.3