Skip to content

armgit / mocha

Public Imported from GitHub
0

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

support --es_staging flag

klaemofe15f19369e5
diff --git a/bin/_mocha b/bin/_mocha
index 716cb446..ee974439 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -79,6 +79,7 @@ program
.option('--debug-brk', "enable node's debugger breaking on the first line")
.option('--globals <names>', 'allow the given comma-delimited global [names]', list, [])
.option('--harmony', 'enable all harmony features (except typeof)')
+ .option('--es_staging', 'enable all staged features')
.option('--harmony-collections', 'enable harmony collections (sets, maps, and weak maps)')
.option('--harmony-generators', 'enable harmony generators')
.option('--harmony-proxies', 'enable harmony proxies')
diff --git a/bin/mocha b/bin/mocha
index 556aa361..08c47afe 100755
--- a/bin/mocha
+++ b/bin/mocha
@@ -51,6 +51,7 @@ process.argv.slice(2).forEach(function(arg){
break;
case '--gc-global':
case '--harmony':
+ case '--es_staging':
case '--harmony-proxies':
case '--harmony-collections':
case '--harmony-generators':