We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c987663 commit 0765fc7Copy full SHA for 0765fc7
src/main/clojure/cljs/analyzer.cljc
@@ -1413,7 +1413,7 @@
1413
(error env "Too many arguments to throw, throw expects a single Error instance")))
1414
(let [throw-expr (disallowing-recur (analyze (assoc env :context :expr) throw-form))]
1415
{:env env :op :throw :form form
1416
- :throw throw-expr
+ :exception throw-expr
1417
:children [throw-expr]}))
1418
1419
(defmethod parse 'try
src/main/clojure/cljs/compiler.cljc
@@ -559,7 +559,7 @@
559
(emitln "return " gs ";})()"))))
560
561
(defmethod emit* :throw
562
- [{:keys [throw env]}]
+ [{throw :exception :keys [env]}]
563
(if (= :expr (:context env))
564
(emits "(function(){throw " throw "})()")
565
(emitln "throw " throw ";")))
0 commit comments