From 9457b3728aa6071083d14e3db01c48620c34bd46 Mon Sep 17 00:00:00 2001 From: David Mark Date: Mon, 26 Dec 2016 18:41:55 -0500 Subject: [PATCH] Remove redundant - window - reference Note: self is the same as window, except in workers (where there is no window). In either case they are likely to reference the global object, but it would be better to avoid host objects entirely. --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.js b/index.js index 9e2fe8e..96545b9 100644 --- a/index.js +++ b/index.js @@ -29,9 +29,7 @@ var defaultVars = { }, global: function () { return 'typeof global !== "undefined" ? global : ' - + 'typeof self !== "undefined" ? self : ' - + 'typeof window !== "undefined" ? window : {}' - ; + + 'typeof self !== "undefined" ? self : {}'; }, 'Buffer.isBuffer': function (file) { var relpath = getRelativeRequirePath(isbufferPath, file);