News for hackers. Stuff that matters.
Re:Using JavaScript Modules in ClojureScript by ethagnawl on Friday January 27, 2017 @08:51PM (#13504338)
Is anyone else having trouble following along at home?

I'm met with an error when running `node main.js`.

> SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Re:Using JavaScript Modules in ClojureScript by Arnavion on Friday January 27, 2017 @09:09PM (#13504391)
Try `node --use_strict main.js`
Re:Using JavaScript Modules in ClojureScript by ethagnawl on Friday January 27, 2017 @09:12PM (#13504412)
Thanks - that worked!

Do you know why that's necessary and why it wasn't mentioned in the tutorial?

Re:Using JavaScript Modules in ClojureScript by swannodette on Friday January 27, 2017 @09:13PM (#13504418)
You probably need to install a more recent version of Node.js. That's one of the first things mentioned.
Re:Using JavaScript Modules in ClojureScript by ethagnawl on Friday January 27, 2017 @09:43PM (#13504539)
Thanks, David. Upgrading to Node 7.4.0 allowed me to run `node main.js` without having to pass the flag.

Granted, I was using an outdated version of Node, but perhaps it'd be helpful to add a >= version number to the Node dependency blurb (a la JDK 8).

Either way, thanks for your continued efforts!

Re:Using JavaScript Modules in ClojureScript by ethagnawl on Friday January 27, 2017 @10:06PM (#13504638)
One more thing: the `repl/repl*` function call's map argument is missing a closing `}`.