⚝
One Hat Cyber Team
⚝
Your IP:
172.22.0.1
Server IP:
151.80.20.34
Server:
Linux 794f04d97d5e 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
Server Software:
Apache/2.4.62 (Debian)
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
node_modules
/
es-abstract
/
2022
/
View File Name :
ByteListEqual.js
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); var isByteValue = require('../helpers/isByteValue'); // https://ecma-international.org/ecma-262/12.0/#sec-bytelistequal module.exports = function ByteListEqual(xBytes, yBytes) { if (!IsArray(xBytes) || !IsArray(yBytes)) { throw new $TypeError('Assertion failed: `xBytes` and `yBytes` must be sequences of byte values (an integer 0-255, inclusive)'); } if (xBytes.length !== yBytes.length) { return false; } for (var i = 0; i < xBytes.length; i += 1) { var xByte = xBytes[i]; var yByte = yBytes[i]; if (!isByteValue(xByte) || !isByteValue(yByte)) { throw new $TypeError('Assertion failed: `xBytes` and `yBytes` must be sequences of byte values (an integer 0-255, inclusive)'); } if (xByte !== yByte) { return false; } } return true; };