Skip to content

Commit 6abd05d

Browse files
mfikesswannodette
authored andcommitted
CLJS-3303: checked arrays enabled in advanced
1 parent 5b1a7f0 commit 6abd05d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/clojure/cljs/analyzer.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
"Returns false-y, :warn, or :error based on configuration and the
177177
current value of *unchecked-arrays*."
178178
[]
179-
(when (and (not (:advanced (compiler-options)))
179+
(when (and (not= :advanced (:optimizations (compiler-options)))
180180
(not *unchecked-arrays*))
181181
*checked-arrays*))
182182

@@ -4473,7 +4473,7 @@
44734473
(defn build-affecting-options [opts]
44744474
(select-keys opts
44754475
[:static-fns :fn-invoke-direct :optimize-constants :elide-asserts :target :nodejs-rt
4476-
:cache-key :checked-arrays :language-out])))
4476+
:cache-key :checked-arrays :language-out :optimizations])))
44774477

44784478
#?(:clj
44794479
(defn build-affecting-options-sha [path opts]

0 commit comments

Comments
 (0)