-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(jsruntime): async/await #196
Comments
wikipedia: llvm coroutines:
v8: rust:
swift: zig supports async/await:
kotlin: nim-cps: |
i decided not to use
|
basically, existing javascript engines process a javascript module like this: // The evaluation the source text of the module returns a promise object
// if the source text contains top-level `await` expressions.
runtime.evaluate(&source_text);
// Process all jobs.
runtime.process_jobs();
This is a common design pattern that our javascript engine should follow. |
in this ticket, we implement
async
andawait
but we don't implementPromise
.The text was updated successfully, but these errors were encountered: