Skip to content

Commit 9cc085b

Browse files
author
dnolen
committed
browser REPL should use native JSON
1 parent 574abb6 commit 9cc085b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/clojure/cljs/repl/browser.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@
177177
(default-index (or output-to (str output-dir "/main.js")))
178178
"text/html" "UTF-8")
179179
(= path (cond->> "/main.js" output-dir (str "/" output-dir )))
180-
(let [closure-defines (-> `{clojure.browser.repl/HOST ~host
180+
(let [closure-defines (-> `{"goog.json.USE_NATIVE_JSON" true
181+
clojure.browser.repl/HOST ~host
181182
clojure.browser.repl/PORT ~port}
182183
(merge (:closure-defines @browser-state))
183184
cljsc/normalize-closure-defines

0 commit comments

Comments
 (0)