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
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | var globalThis = require('../internals/global-this');
|
---|
| 3 | var NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-basic-detection');
|
---|
| 4 | var arrayBufferByteLength = require('../internals/array-buffer-byte-length');
|
---|
| 5 |
|
---|
| 6 | var DataView = globalThis.DataView;
|
---|
| 7 |
|
---|
| 8 | module.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.