Umama-at-Bluchip/Quick-UI
0
1'use strict';2 3var define = require('define-properties');4 5var getPolyfill = require('./polyfill');6 7module.exports = function shimArrayBufferSlice() {8 if (typeof ArrayBuffer === 'function') {9 var polyfill = getPolyfill();10 define(11 ArrayBuffer.prototype,12 { slice: polyfill },13 { slice: function () { return ArrayBuffer.prototype.slice !== polyfill; } }14 );15 }16 17 return polyfill;18};19 