ohctechv3/.svn/pristine/bc/bc9114bb5ffffd38e0af46d69d3301b4703d5140.svn-base
2024-10-28 15:03:36 +05:30

19 lines
395 B
Plaintext

'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;
};