summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-05-05 09:06:14 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-05 22:40:57 +0200
commit53619176f5d2017e498e5cbecfdc101bf3ca0123 (patch)
tree24d312c931e291de35d174b4eca658ece723b1b4 /Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
parent09e263dd9c6544037ab44cf0523d23d6d2999b1d (diff)
downloadserenity-53619176f5d2017e498e5cbecfdc101bf3ca0123.zip
LibJS: Set "prototype" property of async generator functions
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp b/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
index 0ba0eae4c9..cd500eb251 100644
--- a/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ECMAScriptFunctionObject.cpp
@@ -20,7 +20,6 @@
#include <LibJS/Runtime/ExecutionContext.h>
#include <LibJS/Runtime/FunctionEnvironment.h>
#include <LibJS/Runtime/GeneratorObject.h>
-#include <LibJS/Runtime/GeneratorPrototype.h>
#include <LibJS/Runtime/GlobalObject.h>
#include <LibJS/Runtime/NativeFunction.h>
#include <LibJS/Runtime/PromiseConstructor.h>
@@ -125,7 +124,7 @@ void ECMAScriptFunctionObject::initialize(GlobalObject& global_object)
case FunctionKind::Async:
break;
case FunctionKind::AsyncGenerator:
- // FIXME: Add the AsyncGeneratorObject and set it as prototype.
+ prototype = Object::create(global_object, global_object.async_generator_function_prototype_prototype());
break;
}
// 27.7.4 AsyncFunction Instances, https://tc39.es/ecma262/#sec-async-function-instances