aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-03-10 10:49:41 +0800
committerGitHub <noreply@github.com>2017-03-10 10:49:41 +0800
commitcf45e2f79b543ebae60c5de54166b20da4522c25 (patch)
tree1c37af194deebf519473eea8ebc0569dd39ea795 /test
parent8354758f3005e98de7ef2b50a01e903d79e4d265 (diff)
downloadtracifyjs-cf45e2f79b543ebae60c5de54166b20da4522c25.tar.gz
tracifyjs-cf45e2f79b543ebae60c5de54166b20da4522c25.zip
fixup for #1585 (#1589)
As patched on `harmony`, `statement()` is the only user of `embed_tokens()` with a missing error branch. Updated test case and match up with `harmony` to facilitate future merging.
Diffstat (limited to 'test')
-rw-r--r--test/mocha/cli.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mocha/cli.js b/test/mocha/cli.js
index 0b4fe007..fa952d91 100644
--- a/test/mocha/cli.js
+++ b/test/mocha/cli.js
@@ -247,7 +247,7 @@ describe("bin/uglifyjs", function () {
assert.strictEqual(lines[0], "Parse error at test/input/invalid/loop-no-body.js:2,0");
assert.strictEqual(lines[1], "for (var i = 0; i < 1; i++) ");
assert.strictEqual(lines[2], " ^");
- assert.strictEqual(lines[3], "SyntaxError: Expected expression");
+ assert.strictEqual(lines[3], "SyntaxError: Unexpected token: eof (undefined)");
done();
});
});