Browse files

Merge pull request #190 from mandrelworks/master

Supporting the `--harmony_destructuring` flag.
  • Loading branch information...
2 parents 9fe2dd2 + 9c32c49 commit 0ca1512f6e0937ba95c6983c4b58402465fe79e1 @petruisfan committed Jun 6, 2016
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/supervisor.js
View
6 lib/supervisor.js
@@ -16,6 +16,7 @@ var interactive = true;
var log = console.log;
var crash_queued = false;
var harmony_default_parameters = false;
+var harmony_destructuring = false;
exports.run = run;
@@ -31,6 +32,8 @@ function run (args) {
harmony = true;
} else if (arg === "--harmony_default_parameters") {
harmony_default_parameters = true;
+ } else if (arg === "--harmony_destructuring") {
+ harmony_destructuring = true;
} else if (arg === "--verbose" || arg === "-V") {
verbose = true;
} else if (arg === "--restart-verbose" || arg === "-RV") {
@@ -115,6 +118,9 @@ function run (args) {
if (harmony_default_parameters) {
program.unshift("--harmony_default_parameters");
}
+ if (harmony_destructuring) {
+ program.unshift("--harmony_destructuring");
+ }
if (executor === "coffee" && (debugFlag || debugBrkFlag)) {
// coffee does not understand debug or debug-brk, make coffee pass options to node
program.unshift("--nodejs")

0 comments on commit 0ca1512

Please sign in to comment.