Skip to content

Commit

Permalink
[Deps] update call-bind, es-abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 13, 2024
1 parent fae569b commit 5490f60
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions aos/IsTypedArrayOutOfBounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ var $TypeError = require('es-errors/type');

var IsDetachedBuffer = require('es-abstract/2023/IsDetachedBuffer');
var TypedArrayElementSize = require('es-abstract/2023/TypedArrayElementSize');
// var Type = require('es-abstract/2023/Type');

// var assertRecord = require('es-abstract/helpers/assertRecord');
// var isTypedArrayWithBufferWitnessRecord = require('es-abstract/helpers/records/typed-array-with-buffer-witness-record');

var typedArrayBuffer = require('typed-array-buffer');
var typedArrayByteOffset = require('typed-array-byte-offset');
Expand All @@ -15,7 +14,9 @@ var typedArrayLength = require('typed-array-length');
// https://tc39.es/ecma262/#sec-istypedarrayoutofbounds

module.exports = function IsTypedArrayOutOfBounds(taRecord) {
// assertRecord(Type, 'TypedArray With Buffer Witness Record', 'taRecord', taRecord);
// if (!isTypedArrayWithBufferWitnessRecord(taRecord)) {
// throw new $TypeError('Assertion failed: `taRecord` is not a TypedArray With Buffer Witness Record');
// }

var O = taRecord['[[Object]]']; // step 1

Expand Down
6 changes: 4 additions & 2 deletions aos/TypedArrayByteLength.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ var IsTypedArrayOutOfBounds = require('./IsTypedArrayOutOfBounds');
var TypedArrayElementSize = require('es-abstract/2023/TypedArrayElementSize');
var TypedArrayLength = require('./TypedArrayLength');

// var assertRecord = require('es-abstract/helpers/assertRecord');
// var isTypedArrayWithBufferWitnessRecord = require('es-abstract/helpers/records/typed-array-with-buffer-witness-record');

var typedArrayByteLength = require('typed-array-byte-length');

// https://tc39.es/ecma262/#sec-typedarraybytelength

module.exports = function TypedArrayByteLength(taRecord) {
// assertRecord(Type, 'TypedArray With Buffer Witness Record', 'taRecord', taRecord);
// if (!isTypedArrayWithBufferWitnessRecord(taRecord)) {
// throw new $TypeError('Assertion failed: `taRecord` is not a TypedArray With Buffer Witness Record');
// }

if (IsTypedArrayOutOfBounds(taRecord)) {
return 0; // step 1
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
},
"dependencies": {
"array-buffer-byte-length": "^1.0.1",
"call-bind": "^1.0.6",
"es-abstract": "^1.22.3",
"call-bind": "^1.0.7",
"es-abstract": "^1.22.4",
"es-errors": "^1.3.0",
"is-array-buffer": "^3.0.4",
"is-shared-array-buffer": "^1.0.2",
Expand Down

0 comments on commit 5490f60

Please sign in to comment.