From e372df5c975dc9720c9252e9b0b25c03e7c4b713 Mon Sep 17 00:00:00 2001 From: Adam Cozzette Date: Mon, 4 Dec 2017 15:08:10 -0800 Subject: Fixed failing JS tests --- js/debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/debug.js') diff --git a/js/debug.js b/js/debug.js index 0b2c5f6a..4ae3c2a2 100644 --- a/js/debug.js +++ b/js/debug.js @@ -79,7 +79,7 @@ jspb.debug.dump_ = function(thing) { type == 'null' || type == 'undefined') { return thing; } - if (window.Uint8Array) { + if (typeof Uint8Array !== 'undefined') { // Will fail on IE9, where Uint8Array doesn't exist. if (message instanceof Uint8Array) { return thing; -- cgit v1.2.3