File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 663
663
(fn [res]
664
664
(if (:error res)
665
665
(cb res)
666
- (let [src (str " goog.provide(\" " (munge (:name ast)) " \" )" )]
666
+ (let [src (str " goog.provide(\" " (comp/ munge (:name ast)) " \" )" )]
667
667
(cb {:value (*eval-fn* {:source src})})))))
668
668
(let [src (with-out-str (comp/emit ast))]
669
669
(cb {:value (*eval-fn* {:source src})})))))))))
873
873
(if (#{:ns :ns* } (:op ast))
874
874
(do
875
875
(.append sb
876
- (with-out-str (comp/emitln (str " goog.provide(\" " (munge (:name ast)) " \" );" ))))
876
+ (with-out-str (comp/emitln (str " goog.provide(\" " (comp/ munge (:name ast)) " \" );" ))))
877
877
(ns-side-effects true bound-vars aenv ast opts
878
878
(fn [res]
879
879
(if (:error res)
Original file line number Diff line number Diff line change
1
+ (ns static.core-test
2
+ (:require [cljs.test :refer-macros [deftest is]]))
3
+
4
+ ; The purpose of this test namespace is to ensure
5
+ ; that the use of a reserved JavaScript keyword
6
+ ; (`static`) in the namespace is handled properly.
7
+
8
+ (deftest foo-test
9
+ (is (= 1 1 )))
Original file line number Diff line number Diff line change 39
39
[cljs.hash-map-test]
40
40
[cljs.predicates-test]
41
41
[cljs.tagged-literals-test]
42
- [cljs.test-test]))
42
+ [cljs.test-test]
43
+ [static.core-test]))
43
44
44
45
(set! *print-newline* false )
45
46
(set-print-fn! js/print)
76
77
'cljs.predicates-test
77
78
'cljs.syntax-quote-test
78
79
'cljs.tagged-literals-test
79
- 'cljs.test-test)
80
+ 'cljs.test-test
81
+ 'static.core-test)
Original file line number Diff line number Diff line change 281
281
[cljs.hash-map-test]
282
282
[cljs.syntax-quote-test]
283
283
[cljs.predicates-test]
284
- [cljs.test-test]))
284
+ [cljs.test-test]
285
+ [static.core-test]))
285
286
(fn [{:keys [value error]}]
286
287
(if error
287
288
(prn error)
317
318
'cljs.hash-map-test
318
319
'cljs.syntax-quote-test
319
320
'cljs.predicates-test
320
- 'cljs.test-test)
321
+ 'cljs.test-test
322
+ 'static.core-test)
321
323
(fn [{:keys [value error]}]
322
324
(when error
323
325
(prn error)))))))))
You can’t perform that action at this time.
0 commit comments