mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Implement Atomics.waitAsync
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
c1b02c23e0
commit
682f176d6d
8 changed files with 257 additions and 171 deletions
|
|
@ -415,6 +415,15 @@ static ValueRef* builtin262AgentStart(ExecutionStateRef* state, ValueRef* thisVa
|
|||
}
|
||||
}
|
||||
|
||||
while (instance->hasPendingJob()) {
|
||||
auto jobResult = instance->executePendingJob();
|
||||
if (jobResult.error) {
|
||||
if (jobResult.error) {
|
||||
fprintf(stderr, "Uncaught %s: in agent\n", jobResult.resultOrErrorToString(context)->toStdUTF8String().data());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
usleep(10 * 1000);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue