<< Back to previous view

[CLJS-566] Partial with no provided arguments results in broken fn Created: 30/Jul/13  Updated: 07/Oct/13  Resolved: 07/Oct/13

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Thomas Omans Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None
Environment:

compiled on debian x64,
run in chrome


Attachments: File CLJS-566    

 Description   

If you try to create a partial with no parameters (I can't think of a good reason to do this) it will break.

The emitted code dispatches off the arguments list of 2 or more, if there is just one parameter it'll end up calling the fn with a bunch of undefined values.

Only considered a bug because this behavior works in clojure (partially applies 0 params)



 Comments   
Comment by David Nolen [ 07/Oct/13 7:52 PM ]

fixed, http://github.com/clojure/clojurescript/commit/999da27114fd5632d1752c333f92cf6093fccea2

Generated at Tue Sep 16 06:43:20 CDT 2014 using JIRA 4.4#649-r158309.