123456789101112131415161718 |
- 'use strict';
- var define = require('define-properties');
- var getPolyfill = require('./polyfill');
- module.exports = function shimArrayBufferSlice() {
- if (typeof ArrayBuffer === 'function') {
- var polyfill = getPolyfill();
- define(
- ArrayBuffer.prototype,
- { slice: polyfill },
- { slice: function () { return ArrayBuffer.prototype.slice !== polyfill; } }
- );
- }
- return polyfill;
- };
|