You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
SIMD values may appear in WASM-JS interface at the function interfaces and as globals. Without SIMD.js its not clear how these be represented in JS.
Should the calls in/out of JS with simd arg/ret throw immediately like its done for i64 WebAssembly/design#923? A similar situation arises for imported globals as well.
For module imports
If the signature contains an simd value (as argument or result), the host function immediately throws a TypeError when called.
For global imports
If the global_type of the import is a simd value, throw a WebAssembly.LinkError
For exported globals
If global is a simd value, throw a WebAssembly.LinkError.
WebAssembly Exported Functions have a [[Call]](this, argValues) method defined as:
Let sig be the function type of the function's [[Closure]].
If sig contains an simd value (as argument or result), a TypeError is thrown.
jfbastien, chicoxyzzy, Krovatkin, jozanza and Cellule