[web-api] Serialize builtin sets and imported string constants of modules

A Module object records the builtins and importedStringConstants compile
options in its [[BuiltinSets]] and [[ImportedStringModule]] internal
slots, which are read again at instantiation. The serialization steps
only carried the module bytes, so a module that was structured cloned or
sent with postMessage had neither slot set on the receiving side.

Store both slots when serializing and restore them when deserializing,
so that a cloned module behaves like the module it was cloned from.
2 files changed
tree: 0a55956695c46b085d230d41514f366487936737
  1. .github/
  2. document/
  3. interpreter/
  4. papers/
  5. proposals/
  6. specification/
  7. spectec/
  8. test/
  9. .gitattributes
  10. .gitignore
  11. .gitmodules
  12. Contributing.md
  13. LICENSE
  14. README.md
  15. w3c.json
  16. wasm-specs.bib
README.md

Spectec Status Interpreter Status Spec doc Status

CI for specs CI for interpreter & tests

spec

This repository holds the sources for the WebAssembly specification, a reference implementation, and the official test suite.

A formatted version of the spec is available here: webassembly.github.io/spec,

Participation is welcome. Discussions about new features, significant semantic changes, or any specification change likely to generate substantial discussion should take place in the WebAssembly design repository first, so that this spec repository can remain focused. And please follow the guidelines for contributing.

citing

For citing WebAssembly in LaTeX, use this bibtex file.