1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00

LibJS: Use FunctionConstructor as the proto of AsyncFunctionConstructor

We were accidentally using FunctionPrototype instead.
This commit is contained in:
Idan Horowitz 2022-02-19 17:35:18 +02:00 committed by Linus Groh
parent a4bc7e2d96
commit de238ff351

View file

@ -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())
{
}