|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
513 bytes
|
| Line | |
|---|
| 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.