astro-ghostcms/.pnpm-store/v3/files/5b/00fba3537edf45e1605df700116...

19 lines
395 B
Plaintext
Raw Normal View History

2024-02-14 14:10:47 +00:00
'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;
};