Semicolon not automagically added in single (var ...) expression
gilesc opened this issue · 1 comments
gilesc commented
Hi there, scriptjure is a really cool idea and has been quite helpful.
Using [scriptjure "0.1.11"] from clojars.
The documentation says -- and I'd expect -- (js (var x 3)) to return "var x = 3;" but it actually returns "var x = 3", without the semicolon. The semicolon is added when you have multiple forms nested within the (js ...) macro, but not when you have only one. It is a minor nuisance, but since I regularly use scriptjure to generate a single JSON data structure, it is a recurring one.
arohner commented
Fixed in 0.1.12