Instrumenting next gives maximum call stack size exceeded

Description

rest and last can be successfully instrumented, but next seems to be vulnerable to a maximum call stack size exceeded error.

Repro:

Patch CLJS-3023-2 provides a solution by going through the protocol method directly instead of using the function next in apply-to-simple. This seems reasonable, since this was already done to first as well.

Patch CLJS-3023-3 restores the fallback for seqs that do not implement INext.

Patch CLJS-3023-4 rebased on master.

Environment

None

Assignee

David Nolen

Reporter

Michiel Borkent

Labels

Approval

Accepted

Patch

Code and Test

Priority

Minor
Configure