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_test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/debug_test.js') diff --git a/js/debug_test.js b/js/debug_test.js index 73810871..d0d646a5 100644 --- a/js/debug_test.js +++ b/js/debug_test.js @@ -77,7 +77,7 @@ describe('debugTest', function() { }); it('testBytes', function() { - if (COMPILED || !window['Uint8Array']) { + if (COMPILED || typeof Uint8Array == 'undefined') { return; } var message = new proto.jspb.test.TestAllTypes(); -- cgit v1.2.3