You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
huazhiyu/node_modules/core-js/internals/array-buffer-is-detached.js

15 lines
387 B

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