From 508510cce29c2f449ccac0c4b51c49d809996629 Mon Sep 17 00:00:00 2001 From: deathcap Date: Mon, 9 May 2016 01:01:17 -0700 Subject: [PATCH] Fix Node v6 incompatibility, DeprecationWarning: 'GLOBAL' is deprecated, use 'global' --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 499c8e3..e76e68b 100644 --- a/index.js +++ b/index.js @@ -25,8 +25,8 @@ function isGlobal(identifier) { } if(typeof window !== "undefined") { return identifier in window - } else if(typeof GLOBAL !== "undefined") { - return identifier in GLOBAL + } else if(typeof global !== "undefined") { + return identifier in global } else if(typeof self !== "undefined") { return identifier in self } else {