Skip to content

maybe some bug in less 3.0.1 #3195

Closed
Closed
@lialosiu

Description

@lialosiu

sorry for my poor English.... m(_ _ )m

this less (just an example):

@cols: 1, 2;

.a(@i: length(@cols)) when (@i > 0) {
  @divider: e(extract(@cols, @i));
}
.a;

.b(@j: 1) when (@j < length(@cols)) {
  @divider: e(extract(@cols, @j));
}
.b;

will cause exception in less 3.0.1
image

but in less 2.7.3, run so far so good.
image

maybe some bug at here?
exception throwed in this line:

current = current.slice(length + parserInput.i - mem + curr);

because current is a number value 2:

image

any solution?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions