diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-16 05:40:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-16 05:40:49 +0800 |
commit | 9464d3c20f60d7abe7fde5b48cc00a699566dbe7 (patch) | |
tree | 4435f4fbad9b37ea74308c7369033f8a12e7924c /test | |
parent | f18abd1b9cba6a4b259777829160e147119f77ec (diff) | |
download | tracifyjs-9464d3c20f60d7abe7fde5b48cc00a699566dbe7.tar.gz tracifyjs-9464d3c20f60d7abe7fde5b48cc00a699566dbe7.zip |
fix parsing of property access after new line (#1944)
Account for comments when detecting property access in `tokenizer`.
fixes #1943
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/issue-1943.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/compress/issue-1943.js b/test/compress/issue-1943.js new file mode 100644 index 00000000..69bb9e64 --- /dev/null +++ b/test/compress/issue-1943.js @@ -0,0 +1,31 @@ +operator: { + input: { + a. //comment + typeof + } + expect_exact: "a.typeof;" +} + +name: { + input: { + a. //comment + b + } + expect_exact: "a.b;" +} + +keyword: { + input: { + a. //comment + default + } + expect_exact: "a.default;" +} + +atom: { + input: { + a. //comment + true + } + expect_exact: "a.true;" +} |