projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a081154
)
Bug unparsing JS function
author
David Vázquez
<davazp@gmail.com>
Fri, 21 Jun 2013 23:28:45 +0000
(
01:28
+0200)
committer
David Vázquez
<davazp@gmail.com>
Fri, 21 Jun 2013 23:28:45 +0000
(
01:28
+0200)
src/compiler-codegen.lisp
patch
|
blob
|
history
diff --git
a/src/compiler-codegen.lisp
b/src/compiler-codegen.lisp
index
50f33af
..
105bfcd
100644
(file)
--- a/
src/compiler-codegen.lisp
+++ b/
src/compiler-codegen.lisp
@@
-154,7
+154,7
@@
(js-format ",")
(js-identifier arg)))
(js-format ")")
(js-format ",")
(js-identifier arg)))
(js-format ")")
- (js-stmt `(group ,@body)))
+ (js-stmt `(group ,@body) t))
(defun check-lvalue (x)
(unless (or (symbolp x)
(defun check-lvalue (x)
(unless (or (symbolp x)
@@
-362,9
+362,12
@@
((and (consp form) (eq (car form) 'progn))
(destructuring-bind (&body body) (cdr form)
(cond
((and (consp form) (eq (car form) 'progn))
(destructuring-bind (&body body) (cdr form)
(cond
- ((null body) '(empty))
- ((null (cdr body)) (js-expand-stmt (car body)))
- (t `(group ,@(cdr form))))))
+ ((null body)
+ '(empty))
+ ((null (cdr body))
+ (js-expand-stmt (car body)))
+ (t
+ `(group ,@(cdr form))))))
(t
form)))
(t
form)))