tschneidereit / proposal-typed-objects

Proposal for adding Typed Objects to JavaScript
Apache License 2.0
27 stars 0 forks source link

How are Value Types exposed in JS? #5

Open chicoxyzzy opened 6 years ago

chicoxyzzy commented 6 years ago

Both overview from this repo and WebAssembly's GC v1 JS API don't mention how Value Types are exposed in JS. In examples they look like Well-known Intrinsic Objects, but they can't be Well-known Intrinsic Objects because they are surely not web compatible. So it's not clear where do uint8, int8, any, etc. come from.

tschneidereit commented 6 years ago

True, that part isn't in the explainer yet. That's because we haven't settled on a solution—Typed Objects might end up being exposed as a builtin module, or in a way that's similar to Math.