improve fix for #3976 (#3980)

This commit is contained in:
Alex Lam S.L
2020-06-09 17:00:57 +01:00
committed by GitHub
parent ed7c82fa5e
commit 1d15f51238
2 changed files with 9 additions and 11 deletions

View File

@@ -112,7 +112,7 @@ function process_option(name, no_value) {
" --verbose Print diagnostic messages.",
" --warn Print warning messages.",
" --wrap <name> Embed everything as a function with “exports” corresponding to “name” globally.",
" --reduce-test Reduce a standalone test case.",
" --reduce-test Reduce a standalone test case (assumes cloned repository).",
].join("\n"));
}
process.exit();
@@ -303,7 +303,7 @@ function run() {
}
var result;
if (specified["reduce-test"]) {
// load on demand - assumes dev tree checked out
// load on demand - assumes cloned repository
var reduce_test = require("../test/reduce");
if (Object.keys(files).length != 1) fatal("can only test on a single file");
result = reduce_test(files[Object.keys(files)[0]], options, {