Thanks for writing this up on such a new technology! With so few resources since it’s fresh off the press, it was helpful to find it.

One comment (and something to consider updating in your article: The section where you modify the compiler (Add the module name to the compiler) is not necessary — the -M command line parameter does this for you.
qjsc -M YourSharedLib -o output MyModule.js
This would load up your shared library the same way, but without having to modify the source of the compiler.

Written by

Entrepreneur. Engineer. Educator.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store