Francis McCabe
Francis McCabe
We have decided to only suspend wrapped imports that return Promises.
Belay that: following input from spec stakeholders and others, calls to wrapped imports (Suspending functions) will use Promise.resolve on the returned value. This permits Promise-like objects but also results in...
Good suggestion. And this is the right place to raise a comment like this
I don't think that I would support adding an explicit dependency here. What is the implementation status of atomics?
Current semantics of JSPI should address this question.
new WebAssembly.Suspending(func) does NOT return a function value! As specified, it represents a wrapped function which is only usable in the context of an import during module instantiation. Note that...
This text is being reworked for the specification itself. The intention in the explainer was to note that the execution context was active for some caller. As you note, this...
Please see the specification itself for a description of the semantics of JSPI.
Closing this. It seems that we do care.
In general, the sandwich scenario is going to lead to traps. The reason is that we are not allowing suspended JS frames (technically, we are not allowing the capture of...