From f74b7f74019e796c95c228dc6b0348f9db6e709f Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 9 May 2020 02:58:03 +0100 Subject: implement AST validation (#3863) --- bin/uglifyjs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/uglifyjs') diff --git a/bin/uglifyjs b/bin/uglifyjs index e5124b06..500fe6d8 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -68,6 +68,7 @@ program.option("--self", "Build UglifyJS as a library (implies --wrap UglifyJS)" program.option("--source-map [options]", "Enable source map/specify source map options.", parse_js()); program.option("--timings", "Display operations run time on STDERR."); program.option("--toplevel", "Compress and/or mangle variables in toplevel scope."); +program.option("--validate", "Perform validation during AST manipulations."); program.option("--verbose", "Print diagnostic messages."); program.option("--warn", "Print warning messages."); program.option("--wrap ", "Embed everything as a function with “exports” corresponding to “name” globally."); @@ -91,6 +92,7 @@ if (!program.output && program.sourceMap && program.sourceMap.url != "inline") { "mangle", "sourceMap", "toplevel", + "validate", "wrap" ].forEach(function(name) { if (name in program) { -- cgit v1.2.3