fix label-related bugs (#1835)
authorAlex Lam S.L <alexlamsl@gmail.com>
Sat, 22 Apr 2017 14:15:04 +0000 (22:15 +0800)
committerGitHub <noreply@github.com>
Sat, 22 Apr 2017 14:15:04 +0000 (22:15 +0800)
commitca32a09032b3e7d6aac1f0b01f67a0b67b3037f1
tree217bb3ff8638d97552cf86a16118377eb62f8191
parent6f954aa3d0a505791753c6cb6273e98d84895915
fix label-related bugs (#1835)

- deep cloning of `AST_LabeledStatement`
- `L:do{...}while(false)`
- empty statement with label within block

extend `test/ufuzz.js`
- generate labels for blocks & loops
- generate for-in statements
- skip suspicious option search if `minify()` errs

fixes #1833
lib/ast.js
lib/compress.js
lib/output.js
test/compress/issue-1833.js [new file with mode: 0644]
test/ufuzz.js