Hacker News new | ask | show | jobs
by btmills 2531 days ago
Try adding the `--module` flag [1]. JS now has two different grammars, script and module, and the `import` keyword is only allowed in module code.

[1] https://bellard.org/quickjs/quickjs.html#qjs-interpreter

1 comments

Ah yes of course – thanks, works as advertised now! :o)

Really cool stuff!