From 5304f86c4ca7c67d47e083be219bea7938161c34 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 25 Mar 2019 14:59:55 +0100 Subject: [PATCH] Fix deprecation warning about `GLOBAL` This came up on CITGM (https://github.com/nodejs/citgm) and it's easy to fix. --- test/objects.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/objects.js b/test/objects.js index cebf6b58d..8e86aac27 100644 --- a/test/objects.js +++ b/test/objects.js @@ -799,7 +799,7 @@ if (typeof Int8Array !== 'undefined') { QUnit.test('#1929 Typed Array constructors are functions', function(assert) { _.chain(['Float32Array', 'Float64Array', 'Int8Array', 'Int16Array', 'Int32Array', 'Uint8Array', 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array']) - .map(_.propertyOf(typeof GLOBAL != 'undefined' ? GLOBAL : window)) + .map(_.propertyOf(typeof global != 'undefined' ? global : window)) .compact() .each(function(TypedArray) { // PhantomJS reports `typeof UInt8Array == 'object'` and doesn't report toString TypeArray