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

Re-introduced 'with' special form.

(it got lost somewhere along the way)
parent cf460f93
......@@ -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 " "))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment