Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault @each with argslist node-sass 3.4.2 #1752

Closed
terrierscript opened this issue Nov 24, 2015 · 4 comments
Closed

Segmentation fault @each with argslist node-sass 3.4.2 #1752

terrierscript opened this issue Nov 24, 2015 · 4 comments

Comments

@terrierscript
Copy link

I got segmentation error on node-sass v3.4.2.
This may occure when use @each loop with argslist.

// NG
@mixin some-fn($args...) {
  @each $item in $args {
    @debug($item);
  }
}

// OK
@mixin some-fn-arr($arr) {
  @each $item in $arr {
    @debug($item);
  }
}


.foo{
  @include some-fn(); // OK
  @include some-fn((a: "b")); // OK
  @include some-fn((a: "b", c: "d")); //OK
  @include some-fn-arr( () ); // OK
  @include some-fn( () ); // segmentation fault
}
@xzyfer
Copy link
Contributor

xzyfer commented Nov 28, 2015

@mgreter can you please provide a spec for this?

@mgreter
Copy link
Contributor

mgreter commented Nov 28, 2015

Minimal case:

@mixin some-fn($args...) {
  @each $item in $args {
    @debug($item);
  }
}
.foo{
  @include some-fn( () ); // segmentation fault
}

xzyfer added a commit to xzyfer/sass-spec that referenced this issue Dec 1, 2015
@xzyfer
Copy link
Contributor

xzyfer commented Dec 1, 2015

Spec for this current fails due to #1768

@xzyfer
Copy link
Contributor

xzyfer commented Dec 1, 2015

Spec PR sass/sass-spec#632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants