source: imaps-frontend/node_modules/core-js/internals/array-buffer-is-detached.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 513 bytes
RevLine 
[79a0317]1'use strict';
2var globalThis = require('../internals/global-this');
3var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-basic-detection');
4var arrayBufferByteLength = require('../internals/array-buffer-byte-length');
5
6var DataView = globalThis.DataView;
7
8module.exports = function (O) {
9 if (!NATIVE_ARRAY_BUFFER || arrayBufferByteLength(O) !== 0) return false;
10 try {
11 // eslint-disable-next-line no-new -- thrower
12 new DataView(O);
13 return false;
14 } catch (error) {
15 return true;
16 }
17};
Note: See TracBrowser for help on using the repository browser.