commit | e372df5c975dc9720c9252e9b0b25c03e7c4b713 | [log] [tgz] |
---|---|---|
author | Adam Cozzette <acozzette@google.com> | Mon Dec 04 15:08:10 2017 -0800 |
committer | Adam Cozzette <acozzette@google.com> | Tue Dec 05 10:41:31 2017 -0800 |
tree | f1310305536257af74c2a830b34c4a8f020f48c2 | |
parent | 7bb8584f9d4114fda7360f9f677bcc04e718be18 [diff] [blame] |
Fixed failing JS tests
diff --git a/js/debug.js b/js/debug.js index 0b2c5f6..4ae3c2a 100644 --- a/js/debug.js +++ b/js/debug.js
@@ -79,7 +79,7 @@ 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;