mozilla-spidermonkey / spidermonkey-embedding-examples

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

Example of how to do dynamic import #74

Closed ptomato closed 3 months ago

ptomato commented 1 year ago

This adds a dynamic import hook to the existing modules example, so that import() works. It requires adding a job queue and calling js::RunJobs.