diff --git a/bin/_mocha b/bin/_mocha index f8068835f6..13c369f55c 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 ,...', '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/mocha index 031ef56bff..ebc517784d 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;