From 3d62af004d790f97f437f5666efaf0828a8c9bcd Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 5 Dec 2014 23:06:17 +1100 Subject: [PATCH] fix bin/6to5-node code formatting --- bin/6to5-node | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/bin/6to5-node b/bin/6to5-node index bf091e242d..2387551176 100755 --- a/bin/6to5-node +++ b/bin/6to5-node @@ -15,15 +15,18 @@ process.argv.slice(2).forEach(function(arg){ case "-d": args.unshift("--debug"); break; + case "debug": case "--debug": case "--debug-brk": args.unshift(arg); break; + case "-gc": case "--expose-gc": args.unshift("--expose-gc"); break; + case "--gc-global": case "--harmony": case "--harmony-proxies": @@ -35,16 +38,20 @@ process.argv.slice(2).forEach(function(arg){ case "--trace-deprecation": args.unshift(arg); break; + default: - if (0 == arg.indexOf("--trace")) args.unshift(arg); - else args.push(arg); + if (arg.indexOf("--trace") === 0) { + args.unshift(arg); + } else { + args.push(arg); + } break; } }); var proc = spawn(process.argv[0], args, { stdio: "inherit" }); proc.on("exit", function (code, signal) { - process.on("exit", function (){ + process.on("exit", function () { if (signal) { process.kill(process.pid, signal); } else {