☕️ Classic, reliable, trusted test framework for Node.js and the browser
support for strict mode
tmont77ddbef14441
diff --git a/bin/_mocha b/bin/_mochaindex f8068835..13c369f5 100755--- a/bin/_mocha+++ b/bin/_mocha@@ -95,6 +95,7 @@ program.option('--throw-deprecation', 'throw an exception anytime a deprecated function is used').option('--trace', 'trace function calls').option('--trace-deprecation', 'show stack traces on deprecations')+ .option('--use_strict', 'enforce strict mode').option('--watch-extensions <ext>,...', 'additional extensions to monitor with --watch', list, []).option('--delay', 'wait for async suite definition')@@ -207,6 +208,7 @@ mocha.ui(program.ui);// load reporter+var Reporter = null;try {Reporter = require('../lib/reporters/' + program.reporter);} catch (err) {diff --git a/bin/mocha b/bin/mochaindex 031ef56b..ebc51778 100755--- a/bin/mocha+++ b/bin/mocha@@ -34,6 +34,7 @@ process.argv.slice(2).forEach(function(arg){case '--prof':case '--throw-deprecation':case '--trace-deprecation':+ case '--use_strict':case '--allow-natives-syntax':args.unshift(arg);break;