Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

add v8 --trace-* option support

TJ Holowaychuk6c73c296d121
diff --git a/.gitignore b/.gitignore
index 112051e8..f046166d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ node_modules
testing
_mocha.js
test.js
+my-reporter.js
diff --git a/bin/mocha b/bin/mocha
index 811ed9d8..7d66db34 100755
--- a/bin/mocha
+++ b/bin/mocha
@@ -23,7 +23,8 @@ process.argv.slice(2).forEach(function (arg) {
args.unshift('--expose-gc');
break;
default:
- args.push(arg);
+ if (0 == arg.indexOf('--trace')) args.unshift(arg);
+ else args.push(arg);
break;
}
});