projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6d1007
)
progn translation uses ',' Javascript operator
author
David Vázquez
<davazp@gmail.com>
Sat, 25 May 2013 13:23:30 +0000
(14:23 +0100)
committer
David Vázquez
<davazp@gmail.com>
Sat, 25 May 2013 13:23:30 +0000
(14:23 +0100)
New compiler should deprecate this soon
src/compiler.lisp
patch
|
blob
|
history
diff --git
a/src/compiler.lisp
b/src/compiler.lisp
index
46817ed
..
3a74399
100644
(file)
--- a/
src/compiler.lisp
+++ b/
src/compiler.lisp
@@
-670,7
+670,14
@@
(define-compilation progn (&rest body)
(if (null (cdr body))
(ls-compile (car body) *multiple-value-p*)
- (js!selfcall (ls-compile-block body t))))
+ (code "("
+ (join
+ (remove-if #'null-or-empty-p
+ (append
+ (mapcar #'ls-compile (butlast body))
+ (list (ls-compile (car (last body)) t))))
+ ",")
+ ")")))
(defun special-variable-p (x)
(and (claimp x 'variable 'special) t))