projects
/
jscl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Wrap non-trivial functions with parenthesis
[jscl.git]
/
src
/
compiler-codegen.lisp
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-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)
(js-format "(")
(when (cdr args)
(with-operator (12 'left)