mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
Notes:
sideshowbarker
2024-07-17 18:31:50 +09:00
Author: https://github.com/IdanHo
Commit: de238ff351
Pull-request: https://github.com/SerenityOS/serenity/pull/12656
Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue