Files
NapCatQQ/.pnpm-store/v3/files/5b/00fba3537edf45e1605df700116c5bdea5a4970035b147213abc801dfff34f6c91bd3ba6a5a442750d55671a99de2d6ea39157bcf6482ca9ef3aac02063863
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

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