From d4c026980e480929d924ee663c249331439ccb49 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 16 Dec 2015 11:15:36 +0100 Subject: [PATCH] Only export `Uint32ArrayView` when it's actually defined, to prevent breaking e.g. the Firefox addon/built-in version *This is a follow-up to PR 6683.* --- src/shared/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/util.js b/src/shared/util.js index 9b203cacf..baf3ee70d 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -631,6 +631,8 @@ var Uint32ArrayView = (function Uint32ArrayViewClosure() { return Uint32ArrayView; })(); + +exports.Uint32ArrayView = Uint32ArrayView; //#else //PDFJS.hasCanvasTypedArrays = true; //#endif @@ -1663,7 +1665,6 @@ exports.PasswordResponses = PasswordResponses; exports.StatTimer = StatTimer; exports.StreamType = StreamType; exports.TextRenderingMode = TextRenderingMode; -exports.Uint32ArrayView = Uint32ArrayView; exports.UnexpectedResponseException = UnexpectedResponseException; exports.UnknownErrorException = UnknownErrorException; exports.Util = Util;