Skip to content

Commit 0765fc7

Browse files
frenchy64swannodette
authored andcommitted
rename :throw entry to :exception in :throw op
1 parent c987663 commit 0765fc7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/clojure/cljs/analyzer.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@
14131413
(error env "Too many arguments to throw, throw expects a single Error instance")))
14141414
(let [throw-expr (disallowing-recur (analyze (assoc env :context :expr) throw-form))]
14151415
{:env env :op :throw :form form
1416-
:throw throw-expr
1416+
:exception throw-expr
14171417
:children [throw-expr]}))
14181418

14191419
(defmethod parse 'try

src/main/clojure/cljs/compiler.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@
559559
(emitln "return " gs ";})()"))))
560560

561561
(defmethod emit* :throw
562-
[{:keys [throw env]}]
562+
[{throw :exception :keys [env]}]
563563
(if (= :expr (:context env))
564564
(emits "(function(){throw " throw "})()")
565565
(emitln "throw " throw ";")))

0 commit comments

Comments
 (0)