;;; It is intended to be used with the new compiler. However, it is
;;; quite independent so it has been integrated early in JSCL.
+(/debug "loading compiler-codegen.lisp!")
+
(defvar *js-output* t)
;;; Two seperate functions are needed for escaping strings:
(js-format ",")
(js-identifier arg)))
(js-format ")")
- (js-stmt `(group ,@body)))
+ (js-stmt `(group ,@body) t))
(defun check-lvalue (x)
(unless (or (symbolp x)
((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)))