-
Notifications
You must be signed in to change notification settings - Fork 22
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
Draft of spec for jspi #37
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The general direction wfm. High-level comments
- I don't feel like exposing the Suspending/Promising prototypes on the WebAssembly global is what you want?
- Please do a once-over to make sure each algorithm step ends with a period, I didn't comment on all of them.
- Please do a once-over for oxford comma usage.
- Please use the standard boilerplate for Abstract Closures: "Let foo be a new Abstract Closure with {no parameters, parameters (bar, baz)} that captures quux, quz and performs the following steps when called:"
Also tightened up language obout requiring traps when promise/suspending not correctly lined up.
Some of the changes that follow from reviewer's remarks. Co-authored-by: Shu-yu Guo <[email protected]>
Make it clear that a 'long jump' in the meta-interpreter is being affected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Architecturally lgtm! The comments are all small things.
Some minor tweaks in response to reviewer's remarks.
Co-authored-by: Shu-yu Guo <[email protected]>
Co-authored-by: Shu-yu Guo <[email protected]>
Co-authored-by: Shu-yu Guo <[email protected]>
use 'marker' suffix to better distinguish Suspending objects from functions
Small changes, responding to remarks by reviewer.
Small tweak: Add an explanation for the role of the map Big tweak: Arrange to throw a JS RuntimeError rather than trap when JSPI usage not properly balanced.
Tidy up punctuation.
Clean up throwing exceptions from JS (a little bit)
Merged with repo spec. It is possible more changes will be needed. |
This is a draft of a specification for jspi.