aboutsummaryrefslogtreecommitdiff
path: root/js/debug.js
diff options
context:
space:
mode:
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;