snek
snek
Also on the subject of the custom logic, It would be great if it was possible to call custom entrypoints during the evaluation phase. So far WASI has _start and...
My understanding was that this would be solved by interface types providing the ability to pass nonscalar values as arguments.
@xtuc the main function can already access the module's imports, i'm not sure what you mean.
so the concern is about circulars which expose tdz and get snapshotted as `undefined`?
@xtuc if you do `export let a = 1` and then `(import "whatever" "a")`, it should work fine. the `let a = 1` will evaluate before the execution of the...
@xtuc so if I export a webassembly.memory from js, it gets imported in the cyclic module as that value, and then passed directly to the instantiate call via the import...
Here are the two "primitive" procedures you'd have to support: - `Call(F, thisValue, args)` - `Construct(F, newTarget, args)` (`newTarget` is a constructor, usually `F`) Even if you combine them somehow...
Yeah, the problem isn't methods, it's construct. A construct is not a call, it just sometimes looks like a call (in fact you can do `new Bar`, without parentheses or...
this sounds like something that would be represented in an esm resolver implementation, not this proposal.
i32 is just some 32 bit "thing". The interface types would say whether to treat that as signed or unsigned.