diff options
-rw-r--r-- | test/ufuzz.js | 6 | ||||
-rw-r--r-- | test/ufuzz.json | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/ufuzz.js b/test/ufuzz.js index 241e0439..bd110c3e 100644 --- a/test/ufuzz.js +++ b/test/ufuzz.js @@ -110,6 +110,8 @@ for (var i = 2; i < process.argv.length; ++i) { STMTS_TO_USE = STMTS_TO_USE.filter(function(id){ return id !== omit; }) }); break; + case '--help': + case '-h': case '-?': console.log('** UglifyJS fuzzer help **'); console.log('Valid options (optional):'); @@ -128,7 +130,7 @@ for (var i = 2; i < process.argv.length; ++i) { return 0; default: // first arg may be a number. - if (i > 2 || !parseInt(process.argv[i], 10)) throw new Error('Unknown argument[' + process.argv[i] + ']; see -? for help'); + if (i > 2 || !parseInt(process.argv[i], 10)) throw new Error('Unknown argument[' + process.argv[i] + ']; see -h for help'); } } @@ -737,7 +739,7 @@ var minify_options = require("./ufuzz.json").map(function(options) { }); var original_code, original_result; var uglify_code, uglify_result, ok; -for (var round = 0; round < num_iterations; round++) { +for (var round = 1; round <= num_iterations; round++) { process.stdout.write(round + " of " + num_iterations + "\r"); VAR_NAMES.length = INITIAL_NAMES_LEN; // prune any previous names still in the list diff --git a/test/ufuzz.json b/test/ufuzz.json index 8db03d2d..2d871e87 100644 --- a/test/ufuzz.json +++ b/test/ufuzz.json @@ -27,7 +27,6 @@ "keep_fargs": false, "passes": 3, "pure_getters": true, - "unsafe": true, "warnings": false } } |