mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Fixed line/column numbers in math expr/ops error messages. Updated tests.
This commit is contained in:
@@ -42,6 +42,12 @@ tree.Rule.prototype = {
|
||||
this.merge,
|
||||
this.index, this.currentFileInfo, this.inline);
|
||||
}
|
||||
catch(e) {
|
||||
if (e.index === undefined) {
|
||||
e.index = this.index;
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
finally {
|
||||
if (strictMathBypass) {
|
||||
env.strictMath = false;
|
||||
|
||||
Reference in New Issue
Block a user