projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
226c00f
)
Wrap non-trivial functions with parenthesis
author
David Vázquez
<davazp@gmail.com>
Thu, 27 Jun 2013 00:37:42 +0000
(
02:37
+0200)
committer
David Vázquez
<davazp@gmail.com>
Thu, 27 Jun 2013 00:37:42 +0000
(
02:37
+0200)
src/compiler-codegen.lisp
patch
|
blob
|
history
diff --git
a/src/compiler-codegen.lisp
b/src/compiler-codegen.lisp
index
e82b841
..
166c7f9
100644
(file)
--- a/
src/compiler-codegen.lisp
+++ b/
src/compiler-codegen.lisp
@@
-219,7
+219,12
@@
(js-format "~a" (apply #'code args)))
;; Function call
(call
- (js-expr (car args))
+ (if (symbolp (car args))
+ (js-expr (car args))
+ (progn
+ (js-format "(")
+ (js-expr (car args))
+ (js-format ")")))
(js-format "(")
(when (cdr args)
(with-operator (12 'left)