From 00ba710e3c68fd667499a602bcead98400f1ac55 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20V=C3=A1zquez?= Date: Thu, 20 Jun 2013 15:31:26 +0200 Subject: [PATCH] Support 'throw' statement --- src/compiler-codegen.lisp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler-codegen.lisp b/src/compiler-codegen.lisp index 1eabe21..5b8d028 100644 --- a/src/compiler-codegen.lisp +++ b/src/compiler-codegen.lisp @@ -416,6 +416,11 @@ (js-expr condition) (js-format ")") (js-stmt `(group ,@body)))) + (throw + (destructuring-bind (object) (cdr form) + (js-format "throw ") + (js-expr object) + (js-format ";"))) (t (js-expr form) (js-format ";"))))) -- 1.7.10.4