From 150ac0788f4f065336b74e419d769551b8a44bf3 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 16 Nov 2017 13:50:57 +0100 Subject: [PATCH] Remove IE9 specific `XMLHttpRequest` polyfills that utilize `VBArray` --- src/shared/compatibility.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/shared/compatibility.js b/src/shared/compatibility.js index b73510b02..f0caf462a 100644 --- a/src/shared/compatibility.js +++ b/src/shared/compatibility.js @@ -13,7 +13,7 @@ * limitations under the License. */ /* eslint-disable no-extend-native */ -/* globals VBArray, PDFJS, global */ +/* globals PDFJS */ // Skip compatibility checks for the extensions and if we already ran // this module. @@ -86,19 +86,6 @@ PDFJS.compatibilityChecked = true; }, }); - // Support: IE9 - if (typeof VBArray !== 'undefined') { - Object.defineProperty(xhrPrototype, 'response', { - get: function xmlHttpRequestResponseGet() { - if (this.responseType === 'arraybuffer') { - return new Uint8Array(new VBArray(this.responseBody).toArray()); - } - return this.responseText; - }, - }); - return; - } - Object.defineProperty(xhrPrototype, 'response', { get: function xmlHttpRequestResponseGet() { if (this.responseType !== 'arraybuffer') {