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 }; };
Pushed a fix for this.
Thanks for the bug report.
Vladimir
2011/1/19 Daniel Gackle danielgackle@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@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel@common-lisp.net