https://github.com/mishoo/UglifyJS
Revision fb092839c26ddaa0614df5295be85ea207bda9f7 authored by Alex Lam S.L on 17 March 2017, 17:56:15 UTC, committed by GitHub on 17 March 2017, 17:56:15 UTC
`input` and `expect` are parsed as `AST_BlockStatement` which does not support `AST_Directive` by default.

Emulate that by transforming preceding `AST_SimpleStatement`s of `AST_String` into `AST_Directive`.
1 parent b7c112e
History
Tip revision: fb092839c26ddaa0614df5295be85ea207bda9f7 authored by Alex Lam S.L on 17 March 2017, 17:56:15 UTC
fix top-level directives in compress tests (#1615)
Tip revision: fb09283
File Mode Size
.github
bin
lib
test
tools
.gitattributes -rw-r--r-- 20 bytes
.gitignore -rw-r--r-- 35 bytes
.travis.yml -rw-r--r-- 191 bytes
LICENSE -rw-r--r-- 1.3 KB
README.md -rw-r--r-- 40.4 KB
appveyor.yml -rw-r--r-- 350 bytes
package.json -rw-r--r-- 1.3 KB

README.md

back to top