High-arity .apply on spec-instrumented function throws "Invalid arity" error

Description

With ClojureScript 1.10.238, if you call .apply with over 21 arguments on a function that has been instrumented with cljs.spec.test.alpha/instrument, you will get an error about invalid arity. This problem does not occur with ClojureScript 1.9.954.

Regular apply works as expected.

Environment

ClojureScript 1.10.238

Activity

Show:
David Nolen
March 27, 2018, 10:40 PM

See CLJS-364 & CLJS-365

Andre R
March 28, 2018, 7:22 AM

Some of these are (commented out) but added in the patch for the apply test suit:

David Nolen
March 28, 2018, 4:35 PM

Ah great, thanks for the tests.

David Nolen
June 10, 2018, 6:28 PM

Revisiting this now that I'm working on CLJS-2761, why do we need to support `.apply`? I don't think this was ever promised.

Assignee

Unassigned

Reporter

Miikka Koskinen

Labels

None

Approval

None

Patch

None

Priority

Major
Configure