Commit 9090e43c authored by Vladimir Sedach's avatar Vladimir Sedach
Browse files

Re-introduced 'with' special form.

(it got lost somewhere along the way)
parent cf460f93
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -549,6 +549,11 @@ prefix)."

;;; with

(define-js-special-form with (statement &rest body)
  (make-instance 'js-with
		 :obj (js-compile-to-expression statement)
		 :body (js-compile-to-body (cons 'progn body) :indent "  ")))

;;; try-catch
(define-js-special-form try (body &rest clauses)
  (let ((body (js-compile-to-body body :indent "  "))