Skip to content

Commit 37666f7

Browse files
committed
CLJS-1891: UUID.toString can return non-string
assert that argument to cljs.core/uuid is a string
1 parent a5a9632 commit 37666f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10579,6 +10579,7 @@ reduces them without incurring seq initialization"
1057910579
(garray/defaultCompare uuid (.-uuid other))))
1058010580

1058110581
(defn uuid [s]
10582+
(assert (string? s))
1058210583
(UUID. s nil))
1058310584

1058410585
(defn random-uuid []

0 commit comments

Comments
 (0)