Skip to content

Commit d6f8896

Browse files
committed
CLJS-3008: Typo in error phase key placed in exception and misplaced cause
1 parent 848e10a commit d6f8896

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/clojure/cljs/util.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
(def ^:dynamic *clojurescript-version*)
2121

2222
(defn compilation-error [cause]
23-
(ex-info nil {:closure.error/phase :compilation}) cause)
23+
(ex-info nil {:clojure.error/phase :compilation} cause))
2424

2525
(defn- main-src-directory []
2626
(some (fn [file]

src/test/clojure/cljs/util_tests.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@
6060
(deftest test-content-sha
6161
(is (= "40BD001563085FC35165329EA1FF5C5ECBDBBEEF" (util/content-sha "123")))
6262
(is (= "40BD0" (util/content-sha "123" 5))))
63+
64+
(deftest test-cljs-3008
65+
(is (= :compilation (:clojure.error/phase (ex-data (util/compilation-error (Exception.)))))))

0 commit comments

Comments
 (0)