[parenscript-devel] Syntax error assigning compound expression in object literal

Vladimir Sedach vsedach at gmail.com
Mon Jan 31 02:48:09 UTC 2011


Pushed a fix for this.

Thanks for the bug report.

Vladimir

2011/1/19 Daniel Gackle <danielgackle at gmail.com>:
> The generated JS is invalid here, somewhat unexpectedly (I suppose
> parentheses are required):
> (defun foo (obj)
>   (create :abc (let ((x (gethash "blah" obj)))
>                  (if x 123 456))))
> =>
> function foo(obj) {
>     var x;
>     return { 'abc' : x = obj['blah'], x ? 123 : 456 };
> };
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
>




More information about the parenscript-devel mailing list