Skip to content

Commit d2e4424

Browse files
committed
CLJS-2877: Use SourceFile/fromPath instead of SourceFile/fromFile
1 parent de3a603 commit d2e4424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/clojure/cljs/closure.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
(SourceFile/fromCode name source))
115115

116116
(defmethod js-source-file File [_ ^File source]
117-
(SourceFile/fromFile source))
117+
(SourceFile/fromPath (.toPath source) StandardCharsets/UTF_8))
118118

119119
(defmethod js-source-file BufferedInputStream [^String name ^BufferedInputStream source]
120120
(SourceFile/fromInputStream name source))

0 commit comments

Comments
 (0)