diff options
author | Richard van Velzen <rvanvelzen1@gmail.com> | 2015-12-26 14:26:22 +0100 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2015-12-26 14:26:22 +0100 |
commit | ac810dc07a6cfb2bd32cf5c8eb2f496bfe0edf3d (patch) | |
tree | f86aa5a5f37eb79bbcd506cb3ce1b7358f1b6475 /test/compress | |
parent | 9e2f9f7910fa1a51a12ce51a1711601ad6587089 (diff) | |
parent | 0cabedc52617cef9623627b390703c011ab6c0b6 (diff) | |
download | tracifyjs-ac810dc07a6cfb2bd32cf5c8eb2f496bfe0edf3d.tar.gz tracifyjs-ac810dc07a6cfb2bd32cf5c8eb2f496bfe0edf3d.zip |
Merge pull request #896 from avdg/do-while-semicolon
Semicolon after do...while statement is optional
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/loops.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/compress/loops.js b/test/compress/loops.js index cdf1f045..91aa1c5f 100644 --- a/test/compress/loops.js +++ b/test/compress/loops.js @@ -121,3 +121,27 @@ drop_if_else_break_4: { for (; bar() && (x(), y(), foo());) baz(), z(), k(); } } + +parse_do_while_with_semicolon: { + options = { loops: false }; + input: { + do { + x(); + } while (false);y() + } + expect: { + do x(); while (false);y(); + } +} + +parse_do_while_without_semicolon: { + options = { loops: false }; + input: { + do { + x(); + } while (false)y() + } + expect: { + do x(); while (false);y(); + } +}
\ No newline at end of file |