Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PoC: Support forfunction*/yield.#5082

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
sjrd wants to merge2 commits intoscala-js:main
base:main
Choose a base branch
Loading
fromsjrd:async-and-generators

Conversation

sjrd
Copy link
Member

@sjrdsjrd commentedNov 26, 2024
edited
Loading

Wouldfix#5079.

  • Only only works on JS; not on Wasm.
  • yield_* should work (on JS) but is untested.
  • async function* has theoretical support in the linker, but no support in the compiler backend for now.

Tryhelloworld2_12/run. On JS you can uncomment the code that uses the generator. Left commented out in the PR so that there's a chance the CI can get green.

He-Pin, keynmol, exoego, and armanbilge reacted with heart emoji
@sjrdsjrdforce-pushed theasync-and-generators branch 2 times, most recently fromc8a4b12 to1a985b7CompareDecember 1, 2024 12:01
@sjrdsjrdforce-pushed theasync-and-generators branch from6e43d81 toa7954faCompareApril 7, 2025 15:51
@sjrdsjrd changed the titlePoC: Support forasync/await andfunction*/yield.PoC: Support forfunction*/yield.Apr 7, 2025
@sjrdsjrdforce-pushed theasync-and-generators branch froma7954fa to29cf256CompareApril 8, 2025 16:03
As well as the IR version to 1.20-SNAPSHOT.
Wouldfixscala-js#5079.* Only works on JS; not on Wasm.* `yield_*` should work (on JS) but is untested.* `async function*` has theoretical support in the linker, but no  support in the compiler backend for now.
@sjrdsjrdforce-pushed theasync-and-generators branch from29cf256 to804099cCompareApril 22, 2025 08:24
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

SupportGenerators,function*, andyield
1 participant
@sjrd

[8]ページ先頭

©2009-2025 Movatter.jp