mozilla-spidermonkey / spidermonkey-embedding-examples

Documentation and examples for embedding the SpiderMonkey JavaScript / WebAssembly engine in their applications.
Other
195 stars 33 forks source link

Example modules #32

Closed moztcampbell closed 4 years ago

moztcampbell commented 4 years ago

Add an example using ES modules. Using modules requires defining a resolve-hook that returns consistent results for the same specifier and calling the Instantiate method.

moztcampbell commented 4 years ago

Thanks for review. I'm going to land as is and open a follow-up issue.