Skip to content

Commit 71b1e99

Browse files
committed
no .toString for :lite-mode, pay for what you use
1 parent 930fbef commit 71b1e99

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12349,12 +12349,6 @@ reduces them without incurring seq initialization"
1234912349
(declare simple-hash-map)
1235012350

1235112351
(deftype ObjMap [meta keys strobj ^:mutable __hash]
12352-
Object
12353-
(toString [coll]
12354-
(pr-str* coll))
12355-
(equiv [this other]
12356-
(-equiv this other))
12357-
1235812352
IWithMeta
1235912353
(-with-meta [coll meta] (ObjMap. meta keys strobj __hash))
1236012354

@@ -12482,12 +12476,6 @@ reduces them without incurring seq initialization"
1248212476
; collisions. A bucket is an array of alternating keys (not their hashes) and
1248312477
; vals.
1248412478
(deftype HashMap [meta count hashobj ^:mutable __hash]
12485-
Object
12486-
(toString [coll]
12487-
(pr-str* coll))
12488-
(equiv [this other]
12489-
(-equiv this other))
12490-
1249112479
IWithMeta
1249212480
(-with-meta [coll meta] (HashMap. meta count hashobj __hash))
1249312481

@@ -12599,12 +12587,6 @@ reduces them without incurring seq initialization"
1259912587
out)))
1260012588

1260112589
(deftype Set [meta hash-map ^:mutable __hash]
12602-
Object
12603-
(toString [coll]
12604-
(pr-str* coll))
12605-
(equiv [this other]
12606-
(-equiv this other))
12607-
1260812590
IWithMeta
1260912591
(-with-meta [coll meta] (Set. meta hash-map __hash))
1261012592

@@ -12656,4 +12638,4 @@ reduces them without incurring seq initialization"
1265612638
IPrintWithWriter
1265712639
(-pr-writer [coll writer opts] (pr-sequential-writer writer pr-writer "#{" " " "}" opts coll)))
1265812640

12659-
(set! (. Set -EMPTY) (Set. nil (hash-map) empty-unordered-hash))
12641+
(set! (. Set -EMPTY) (Set. nil (simple-hash-map) empty-unordered-hash))

0 commit comments

Comments
 (0)