Skip to content

Commit

Permalink
Merge pull request #2801 from BridgeAR/fix-global-deprecation
Browse files Browse the repository at this point in the history
Fix deprecation warning about `GLOBAL`
  • Loading branch information
jashkenas committed Mar 25, 2019
2 parents d5fe0fd + 5304f86 commit 36eef3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/objects.js
Expand Up @@ -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
Expand Down

0 comments on commit 36eef3c

Please sign in to comment.