(seq x) produces mutable sequence when called with a JavaScript array

Description

This would be fixed by calling `aclone` in the cljs `seq` before passing a JS array to the IndexedSeq constructor

Environment

None

Activity

Show:
David Nolen
April 20, 2020, 5:58 PM

The behavior is the same as Clojure. Unless I’m mistaken this ticket should probably be closed.

Alex Miller
April 20, 2020, 6:17 PM

(This was generated from a support queue ticket.)

Clojure behavior is same (and reason for not cloning is performance) - user can clone before creating seq if desired to avoid this, but can't not clone for more performance if you know what you're doing.

Assignee

Unassigned

Reporter

Alex Miller

Labels

None

Approval

None

Patch

None

Priority

Minor
Configure