Just as a note. Fabrice Bellard, author of TCC and QEMU and… has written up an ECMAScript engine, QuickJS. qjs. Simple Haxe trials working out fine.
prompt$ haxe -js js/hello.js --main Hello prompt$ qjs js/hello.js Hello.hx:3: Hello, world
For anyone that might be a fan of the works of Fabrice. Supports the spec up to ES2020 and adds some POSIX, bigints, and bigdecimal. Works very well as an embedded engine. GnuCOBOL sports a user defined function for
FUNCTION QJS and it works quite well with COBOL decimal arithmetic and not losing out on rounding and approximations. Ships with a nice little regexp library, a unicode library, and IEEE 754 extended precision floats, libbf which can all be used separately. And it being Fabrice code, the Quick in QuickJS is not a tall tale.
Have good, make well