Affects Version/s: None
Fix Version/s: None
Running the example from http://mmcgrana.github.com/2011/09/clojurescript-nodejs.html. Node fails if using :whitespace optimizations, but works when using :simple. The problem seems to be missing object literals.
The source is:
Here is the compilation that results in the broken code:
When changing the optimizations to :simple, however, it works:
The offending line 487 in the :whitespace code:
In the working :simple code, the corresponding lines looks like this:
If I fix that by adding a line that creates the object, I get another error on line 901:
In the working code, it looks like this:
And if I fix that, I get another error on line 975:
The working code:
|Field||Original Value||New Value|
[ This could be shim'd with nclosure https://github.com/gatapia/nclosure
nclosure seems to have support from both the Google Closure guys and the core Node.js guys.
The addition means another lib packaged with ClojureScript and a preamble line (`require('nclosure').nclosure();`) if the target is :nodejs.
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Completed [ 1 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|