mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Implement more things about async generator
* Implement Async-from-Sync Iterator Object * Replace object that used in iteration with IteratorRecord class * Implement yield expression in async generator correctly * Move ECMAScript operaton functions(promise*, await, generator, async) into related class Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
81a0e9e1ca
commit
81c8c005cf
40 changed files with 798 additions and 388 deletions
|
|
@ -36,17 +36,17 @@ static Value builtinAsyncGeneratorFunction(ExecutionState& state, Value thisValu
|
|||
|
||||
static Value builtinAsyncGeneratorNext(ExecutionState& state, Value thisValue, size_t argc, Value* argv, bool isNewExpression)
|
||||
{
|
||||
return asyncGeneratorEnqueue(state, thisValue, AsyncGeneratorObject::AsyncGeneratorEnqueueType::Next, argv[0]);
|
||||
return AsyncGeneratorObject::asyncGeneratorEnqueue(state, thisValue, AsyncGeneratorObject::AsyncGeneratorEnqueueType::Next, argv[0]);
|
||||
}
|
||||
|
||||
static Value builtinAsyncGeneratorReturn(ExecutionState& state, Value thisValue, size_t argc, Value* argv, bool isNewExpression)
|
||||
{
|
||||
return asyncGeneratorEnqueue(state, thisValue, AsyncGeneratorObject::AsyncGeneratorEnqueueType::Return, argv[0]);
|
||||
return AsyncGeneratorObject::asyncGeneratorEnqueue(state, thisValue, AsyncGeneratorObject::AsyncGeneratorEnqueueType::Return, argv[0]);
|
||||
}
|
||||
|
||||
static Value builtinAsyncGeneratorThrow(ExecutionState& state, Value thisValue, size_t argc, Value* argv, bool isNewExpression)
|
||||
{
|
||||
return asyncGeneratorEnqueue(state, thisValue, AsyncGeneratorObject::AsyncGeneratorEnqueueType::Throw, argv[0]);
|
||||
return AsyncGeneratorObject::asyncGeneratorEnqueue(state, thisValue, AsyncGeneratorObject::AsyncGeneratorEnqueueType::Throw, argv[0]);
|
||||
}
|
||||
|
||||
void GlobalObject::installAsyncGeneratorFunction(ExecutionState& state)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue