Fixed line/column numbers in math expr/ops error messages. Updated tests.

This commit is contained in:
seven-phases-max
2013-12-05 10:56:20 +04:00
parent 167e802875
commit ba5c8189cd
4 changed files with 18 additions and 6 deletions

View File

@@ -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;