Skip to content

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

@terrierscript

Description

@terrierscript

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
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions