Files
est-frame/node_modules/core-js/internals/array-buffer-is-detached.js
2025-10-22 05:38:27 +00:00

16 lines
387 B
JavaScript
Executable File

'use strict';
var uncurryThis = require('../internals/function-uncurry-this');
var arrayBufferByteLength = require('../internals/array-buffer-byte-length');
var slice = uncurryThis(ArrayBuffer.prototype.slice);
module.exports = function (O) {
if (arrayBufferByteLength(O) !== 0) return false;
try {
slice(O, 0, 0);
return false;
} catch (error) {
return true;
}
};