Skip to content

Can't use modulus operator on the result of a function #857

Closed
@ejdyksen

Description

@ejdyksen

Here's the contents of my test sass file:

$list: "item-1" "item-2" "item-3";

#hello {
  @if length($list) % 2 == 0 {
    color: blue;
  }

  @else {
    color: red;
  }
}

This was working in node-sass 1.2.3 and is broken in 2.0.0-beta. So that means it was broken sometime between 5f3558d and cf7c1d1.

Background:
I'm getting a segfault when compiling Neat, using node-sass 2.0.0-beta. This line and this line test the even-ness of the length of a list using mod (%).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions