Skip to content

Commit 18b97ab

Browse files
committed
CLJS-2278 & CLJS-2279
1 parent 3b0ce12 commit 18b97ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: src/test/clojure/cljs/build_api_tests.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
(ana/with-warning-handlers [(collecting-warning-handler ws)]
397397
(build/build (build/inputs (io/file inputs "emit_global_requires_test/core.cljs")) opts cenv))
398398
(is (.exists (io/file out "emit_global_requires_test/core.js")))
399-
(is (true? (boolean (re-find #"emit_global_requires_test\.core\.global\$module\$react_dom\$server = goog\.global\.ReactDOMServer;"
399+
(is (true? (boolean (re-find #"emit_global_requires_test\.core\.global\$module\$react_dom\$server = goog\.global\[\"ReactDOMServer\"\];"
400400
(slurp (io/file out "emit_global_requires_test/core.js"))))))
401401
(is (true? (boolean (re-find #"emit_global_requires_test\.core\.global\$module\$react_dom\$server\.renderToString"
402402
(slurp (io/file out "emit_global_requires_test/core.js"))))))

Diff for: src/test/self/self_host/test.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@
10881088
:eval node-eval}
10891089
(fn [{:keys [error value] :as m}]
10901090
(is (nil? error))
1091-
(is (some? (re-find #"foo\.core\.global\$module\$calculator = goog.global.Calculator;" value)))
1091+
(is (some? (re-find #"foo\.core\.global\$module\$calculator = goog.global\[\"Calculator\"\];" value)))
10921092
(inc! l)))
10931093
(cljs/eval-str
10941094
(atom @st)
@@ -1166,7 +1166,7 @@
11661166
:load calculator-load
11671167
:eval identity}
11681168
(fn [{{:keys [source]} :value}]
1169-
(is (some? (re-find #"foo\.core\.global\$module\$calculator = goog.global.Calculator;\snull;" source)))
1169+
(is (some? (re-find #"foo\.core\.global\$module\$calculator = goog.global\[\"Calculator\"\];\snull;" source)))
11701170
(inc! l)))))))
11711171

11721172
(deftest test-cljs-2261

0 commit comments

Comments
 (0)