⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
es-abstract
/
2022
/
Edit File: ByteListEqual.js
'use strict'; var GetIntrinsic = require('get-intrinsic'); var $TypeError = GetIntrinsic('%TypeError%'); var IsArray = require('./IsArray'); var isByteValue = require('../helpers/isByteValue'); // https://262.ecma-international.org/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; };
Simpan