aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-03-24 14:28:40 +0800
committerGitHub <noreply@github.com>2017-03-24 14:28:40 +0800
commit2e0dc970037b3a22fb367ab77c5fe506317ee40b (patch)
tree881088cc1017036581c6301153bea8159ff8739c /test
parent701035621d708c39f4bdd2022fc02bdb4a967a39 (diff)
downloadtracifyjs-2e0dc970037b3a22fb367ab77c5fe506317ee40b.tar.gz
tracifyjs-2e0dc970037b3a22fb367ab77c5fe506317ee40b.zip
improve error marker placement (#1644)
For AST_UnaryPrefix, points to the operator rather than end of expression.
Diffstat (limited to 'test')
-rw-r--r--test/mocha/cli.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mocha/cli.js b/test/mocha/cli.js
index 33749045..b956309a 100644
--- a/test/mocha/cli.js
+++ b/test/mocha/cli.js
@@ -298,9 +298,9 @@ describe("bin/uglifyjs", function () {
assert.ok(err);
assert.strictEqual(stdout, "");
assert.strictEqual(stderr.split(/\n/).slice(0, 4).join("\n"), [
- "Parse error at test/input/invalid/assign_3.js:1,23",
+ "Parse error at test/input/invalid/assign_3.js:1,18",
"console.log(3 || ++this);",
- " ^",
+ " ^",
"SyntaxError: Invalid use of ++ operator"
].join("\n"));
done();