Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Splat Value "xx" has no method 'isArray' #2211

Closed
nikita-volkov opened this Issue · 5 comments

4 participants

@nikita-volkov

With the CS 1.2.0 the following code

([xs..., y]) -> 

gets compiled into

(function(_arg) {
  var xs, y, _i;
  xs = 2 <= _arg.length ? __slice.call(_arg, 0, _i = _arg.length - 1) : (_i = 0, []), y = _arg[_i++];
});

just fine.

With the freshly cloned 1.2.1-pre the following error gets thrown:

Error: Command failed: TypeError: In src/Main.coffee, Object 
Splat
  Value "xs" has no method 'isArray'
@michaelficarra
Collaborator

Pinging @geraldalewis. I'm thinking he might have something to do with this. Too busy to do a git bisect right now. @nikita-volkov: do you mind?

@nikita-volkov

@michaelficarra Do I mind what?

@michaelficarra
Collaborator

Doing a git bisect to find the commit that caused the problem, then pinging the author here.

@geraldalewis

That does look familiar - I'll be able to take a look in a little bit.

@geraldalewis geraldalewis referenced this issue from a commit in geraldalewis/coffee-script
@geraldalewis geraldalewis Issue #2211 -- splats in destructured parameters c573776
@jashkenas
Owner

This appears to be fixed on master.

@jashkenas jashkenas closed this
@geraldalewis geraldalewis referenced this issue from a commit in geraldalewis/coffee-script
@geraldalewis geraldalewis Wraps up #2211 -- addresses invocations within destructured params f1b2864
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.