diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-06-27 10:31:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-27 10:31:19 +0800 |
commit | 1e4de2e6d31a50dafee4a4e4d020f22691d22292 (patch) | |
tree | 3d7b4b249ecfb6c7a4d61290136d7340b60d2842 /test/mocha/minify.js | |
parent | 8b4dcd8f3e673209cd56ee44cc0292b4bcf60559 (diff) | |
download | tracifyjs-1e4de2e6d31a50dafee4a4e4d020f22691d22292.tar.gz tracifyjs-1e4de2e6d31a50dafee4a4e4d020f22691d22292.zip |
parse `@global_defs` as expressions (#2169)
- let parser rejects non-conformant input
- eliminate need for extraneous parenthesis
Diffstat (limited to 'test/mocha/minify.js')
-rw-r--r-- | test/mocha/minify.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mocha/minify.js b/test/mocha/minify.js index 638e79f7..b4722ce2 100644 --- a/test/mocha/minify.js +++ b/test/mocha/minify.js @@ -212,7 +212,7 @@ describe("minify", function() { }); var err = result.error; assert.ok(err instanceof Error); - assert.strictEqual(err.stack.split(/\n/)[0], "Error: Can't handle expression: debugger"); + assert.strictEqual(err.stack.split(/\n/)[0], "SyntaxError: Unexpected token: keyword (debugger)"); }); it("should skip inherited properties", function() { var foo = Object.create({ skip: this }); |