first
This commit is contained in:
15
node_modules/core-js/internals/array-buffer-is-detached.js
generated
vendored
Normal file
15
node_modules/core-js/internals/array-buffer-is-detached.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
'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;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user