Skip to content
Snippets Groups Projects
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
Branches
Tags parenscript-20070720
No related merge requests found
......@@ -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 " "))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment