sec commit

This commit is contained in:
2024-08-16 15:06:52 +05:30
parent 63dc2b340a
commit dc5b771f30
16489 changed files with 2607484 additions and 0 deletions

22
node_modules/is-shared-array-buffer/index.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
'use strict';
var callBound = require('call-bind/callBound');
var $byteLength = callBound('SharedArrayBuffer.prototype.byteLength', true);
/** @type {import('.')} */
module.exports = $byteLength
? function isSharedArrayBuffer(obj) {
if (!obj || typeof obj !== 'object') {
return false;
}
try {
$byteLength(obj);
return true;
} catch (e) {
return false;
}
}
: function isSharedArrayBuffer(obj) { // eslint-disable-line no-unused-vars
return false;
};