Implement Atomics.waitAsync

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2022-09-13 12:08:29 +09:00 committed by Hyukwoo Park
commit 682f176d6d
8 changed files with 257 additions and 171 deletions

View file

@ -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);
}