Skip to content

Proof of concept async / await implementation.#2340

Draft
aardvark179 wants to merge 56 commits intomozilla:masterfrom
aardvark179:aardvark179-async-poc
Draft

Proof of concept async / await implementation.#2340
aardvark179 wants to merge 56 commits intomozilla:masterfrom
aardvark179:aardvark179-async-poc

Conversation

@aardvark179
Copy link
Copy Markdown
Contributor

This stacks on top of #2335 and implements a proof of concept implementation of async based on generators. I have not yet implemented async iterators—these are pretty simple at the JavaScript level, but would really require some native Java support, and an implementation of at least some built in methods.

Claude did write some of this code for me, but within some fairly strong architectural guidelines, and I did tweak a lot of it afterwards.

This PR adds the following commits on top of #2335:

  1. Expose $262 in shell for ease of exploratory testing.
  2. Refactor away from WithScope for catching exceptions.
  3. Update 262 properties.
  4. Fix various destructuring issues.
  5. Update 262 properties.
  6. Add support for async to 262 test runner.
  7. Initial async parsing support.
  8. Initial 262 properties update.
  9. Enable async-functions in 262 tests and update properties.
  10. Await proof of concept implementation.
  11. Update 262 properties.

@aardvark179 aardvark179 force-pushed the aardvark179-async-poc branch 7 times, most recently from 1bdb3be to 597d467 Compare March 26, 2026 16:24
@aardvark179 aardvark179 force-pushed the aardvark179-async-poc branch 6 times, most recently from c2e9ec0 to 25e069e Compare April 1, 2026 17:18
@aardvark179 aardvark179 force-pushed the aardvark179-async-poc branch from 25e069e to f8a1043 Compare April 3, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant