From 4c1ad04b2c751d05a38755c3d305794b99fad62d Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sat, 13 Dec 2014 17:56:17 +1100 Subject: [PATCH] fix wrong variable name for bin/6to5-node kexec catch --- bin/6to5-node | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/6to5-node b/bin/6to5-node index 85311725a8..958d3cc5cc 100755 --- a/bin/6to5-node +++ b/bin/6to5-node @@ -51,9 +51,9 @@ process.argv.slice(2).forEach(function(arg){ try { var kexec = require("kexec"); kexec(process.argv[0], args); -} catch(e) { - if (e.code !== "MODULE_NOT_FOUND") throw err; - +} catch (err) { + if (err.code !== "MODULE_NOT_FOUND") throw err; + var child_process = require("child_process"); var proc = child_process.spawn(process.argv[0], args, { stdio: "inherit" }); proc.on("exit", function (code, signal) {