mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
LibJS: Use FunctionConstructor as the proto of AsyncFunctionConstructor
We were accidentally using FunctionPrototype instead.
This commit is contained in:
parent
a4bc7e2d96
commit
de238ff351
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
namespace JS {
|
namespace JS {
|
||||||
|
|
||||||
AsyncFunctionConstructor::AsyncFunctionConstructor(GlobalObject& global_object)
|
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())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue