mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Give correct prototype for instances of AsyncGeneratorFunction
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
e2029096f1
commit
e38424a036
2 changed files with 1 additions and 28 deletions
|
|
@ -45,7 +45,7 @@ ScriptFunctionObject::ScriptFunctionObject(ExecutionState& state, CodeBlock* cod
|
|||
initStructureAndValues(state, isConstructor, isGenerator, isAsync);
|
||||
|
||||
if (UNLIKELY(isGenerator && isAsync)) {
|
||||
Object::setPrototypeForIntrinsicObjectCreation(state, state.context()->globalObject()->asyncFunctionPrototype());
|
||||
Object::setPrototypeForIntrinsicObjectCreation(state, state.context()->globalObject()->asyncGenerator());
|
||||
} else if (UNLIKELY(isGenerator)) {
|
||||
Object::setPrototypeForIntrinsicObjectCreation(state, state.context()->globalObject()->generator());
|
||||
} else if (UNLIKELY(isAsync)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue