aboutsummaryrefslogtreecommitdiff
path: root/js/debug.js
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@google.com>2017-12-04 15:08:10 -0800
committerAdam Cozzette <acozzette@google.com>2017-12-05 10:41:31 -0800
commite372df5c975dc9720c9252e9b0b25c03e7c4b713 (patch)
treef1310305536257af74c2a830b34c4a8f020f48c2 /js/debug.js
parent7bb8584f9d4114fda7360f9f677bcc04e718be18 (diff)
downloadprotobuf-e372df5c975dc9720c9252e9b0b25c03e7c4b713.tar.gz
protobuf-e372df5c975dc9720c9252e9b0b25c03e7c4b713.tar.bz2
protobuf-e372df5c975dc9720c9252e9b0b25c03e7c4b713.zip
Fixed failing JS tests
Diffstat (limited to 'js/debug.js')
-rw-r--r--js/debug.js2
1 files changed, 1 insertions, 1 deletions
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;