File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 9797
9898(defn translate-identifier
9999 [form]
100- (str (if (namespace form)
101- (str (translate-identifier-word (namespace form)) " ." )
102- " " )
103- (join \. (map translate-identifier-word (split (name form) \.)))))
100+ (let [ns (namespace form)]
101+ (str (if (and ns (not (= ns " js" )))
102+ (str (translate-identifier-word (namespace form)) " ." )
103+ " " )
104+ (join \. (map translate-identifier-word (split (name form) \.))))))
104105
105106(defn error-arg-count
106107 [callee n]
Original file line number Diff line number Diff line change 5454(is (= (transpile " what.man?.->you.**.=" ) " what.isMan.toYou.__.isEqual;" ))
5555(is (= (transpile " foo/bar" ) " foo.bar;" ))
5656(is (= (transpile " foo.bar/baz" ) " foo_bar.baz;" ))
57+ (is (= (transpile " js/window" ) " window;" ))
5758
5859; ; =>
5960; ; keywords
You can’t perform that action at this time.
0 commit comments