Skip to content

Commit

Permalink
Merge pull request #1999 from tmont/use-strict-fix
Browse files Browse the repository at this point in the history
support for strict mode
  • Loading branch information
danielstjules committed Dec 25, 2015
2 parents c972f0b + 77ddbef commit 50920fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down Expand Up @@ -207,6 +208,7 @@ mocha.ui(program.ui);

// load reporter

var Reporter = null;
try {
Reporter = require('../lib/reporters/' + program.reporter);
} catch (err) {
Expand Down
1 change: 1 addition & 0 deletions bin/mocha
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50920fc

Please sign in to comment.