From 31c4903f9758d84607fb41dac8d71a104749a0cf Mon Sep 17 00:00:00 2001 From: Valters Jansons Date: Thu, 6 Oct 2016 11:02:45 +0300 Subject: [PATCH] [node] Deprecate GLOBAL in favor of global The `GLOBAL` variable should not be used in order to avoid `DeprecationWarning: 'GLOBAL' is deprecated, use 'global'`. --- src/helper-scripts/node-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper-scripts/node-loader.js b/src/helper-scripts/node-loader.js index 1e81ce60c2..38beba7f89 100644 --- a/src/helper-scripts/node-loader.js +++ b/src/helper-scripts/node-loader.js @@ -38,7 +38,7 @@ var instrumentModulePaths = [ 'phusion_passenger/log_express', 'phusion_passenge var instrumentedModules = []; module.isApplicationLoader = true; // https://groups.google.com/forum/#!topic/compoundjs/4txxkNtROQg -GLOBAL.PhusionPassenger = exports.PhusionPassenger = new EventEmitter(); +global.PhusionPassenger = exports.PhusionPassenger = new EventEmitter(); var stdinReader = new LineReader(process.stdin); beginHandshake(); readInitializationHeader();