File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2267
2267
(throw (error env " set! target must be a field or a symbol naming a var" )))
2268
2268
(cond
2269
2269
(and (not (:def-emits-var env)) ; ; non-REPL context
2270
- (some? ('#{*unchecked-if* *unchecked-array * *warn-on-infer*} target)))
2270
+ (some? ('#{*unchecked-if* *unchecked-arrays * *warn-on-infer*} target)))
2271
2271
{:env env :op :no-op }
2272
2272
2273
2273
:else
Original file line number Diff line number Diff line change 11
11
(:require [cljs.test :as test :refer [deftest is]]
12
12
[cljs.array-access.alpha :as alpha]))
13
13
14
+ (deftest cljs-2861-test
15
+ ; ; With cljs-2718, a typo led to (set! *unchecked-arrays* true) as
16
+ ; ; not being treated as a no-op generating intrisic, which we can
17
+ ; ; detect here when this test is run in JVM ClojureScript.
18
+ (is (false ? *unchecked-arrays*)))
19
+
14
20
(deftest unchecked-arrays-file-scope-test
15
21
(is (not (alpha/unchecked-arrays? ))))
16
22
You can’t perform that action at this time.
0 commit comments