Remove IE9 specific XMLHttpRequest polyfills that utilize VBArray

This commit is contained in:
Jonas Jenwald 2017-11-16 13:50:57 +01:00
parent 935c5c587f
commit 150ac0788f

View File

@ -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') {