Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
19 lines
543 B
Plaintext
19 lines
543 B
Plaintext
'use strict';
|
|
|
|
var hasOwn = require('hasown');
|
|
var isTypedArray = require('is-typed-array');
|
|
|
|
var isInteger = require('../isInteger');
|
|
|
|
module.exports = function isTypedArrayWithBufferWitnessRecord(value) {
|
|
return !!value
|
|
&& typeof value === 'object'
|
|
&& hasOwn(value, '[[Object]]')
|
|
&& hasOwn(value, '[[CachedBufferByteLength]]')
|
|
&& (
|
|
(isInteger(value['[[CachedBufferByteLength]]']) && value['[[CachedBufferByteLength]]'] >= 0)
|
|
|| value['[[CachedBufferByteLength]]'] === 'DETACHED'
|
|
)
|
|
&& isTypedArray(value['[[Object]]']);
|
|
};
|