projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faff794
)
Support 'throw' statement
author
David Vázquez
<davazp@gmail.com>
Thu, 20 Jun 2013 13:31:26 +0000
(15:31 +0200)
committer
David Vázquez
<davazp@gmail.com>
Thu, 20 Jun 2013 13:31:54 +0000
(15:31 +0200)
src/compiler-codegen.lisp
patch
|
blob
|
history
diff --git
a/src/compiler-codegen.lisp
b/src/compiler-codegen.lisp
index
1eabe21
..
5b8d028
100644
(file)
--- 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 ";")))))