File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 444
444
445
445
(declare apply )
446
446
447
- (defn ^array make-array
447
+ (defn make-array
448
448
" Construct a JavaScript array of the specified dimensions. Accepts ignored
449
449
type argument for compatibility with Clojure. Note that there is no efficient
450
450
way to allocate multi-dimensional arrays in JavaScript; as such, this function
Original file line number Diff line number Diff line change 318
318
internal implementation uses standard JS APIs"
319
319
(is (= 'boolean
320
320
(env/with-compiler-env test-cenv
321
- (:tag (analyze test-env '(array? (array )))))))))
321
+ (:tag (analyze test-env '(array? (array )))))))
322
+ (is (= 'array
323
+ (env/with-compiler-env test-cenv
324
+ (:tag (analyze test-env '(make-array js/String. 10 ))))))))
322
325
323
326
(deftest test-always-true-if
324
327
(is (= (env/with-compiler-env test-cenv
You can’t perform that action at this time.
0 commit comments