You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewTypeError(format('invalid argument. Environment lacks Symbol.iterator support. Must provide a length, ArrayBuffer, typed array, or array-like object. Value: `%s`.',arg));
178
+
thrownewTypeError(format('null29',arg));
179
179
}
180
180
if(!isFunction(arg[ITERATOR_SYMBOL])){
181
-
thrownewTypeError(format('invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.',arg));
181
+
thrownewTypeError(format('null2A',arg));
182
182
}
183
183
buf=arg[ITERATOR_SYMBOL]();
184
184
if(!isFunction(buf.next)){
185
-
thrownewTypeError(format('invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.',arg));
185
+
thrownewTypeError(format('null2A',arg));
186
186
}
187
187
buf=newUint8Array(fromIterator(buf));
188
188
}else{
189
-
thrownewTypeError(format('invalid argument. Must provide a length, ArrayBuffer, typed array, array-like object, or an iterable. Value: `%s`.',arg));
189
+
thrownewTypeError(format('null2A',arg));
190
190
}
191
191
}else{
192
192
buf=arguments[0];
193
193
if(!isArrayBuffer(buf)){
194
-
thrownewTypeError(format('invalid argument. First argument must be an ArrayBuffer. Value: `%s`.',buf));
194
+
thrownewTypeError(format('null2B',buf));
195
195
}
196
196
byteOffset=arguments[1];
197
197
if(!isNonNegativeInteger(byteOffset)){
198
-
thrownewTypeError(format('invalid argument. Byte offset must be a nonnegative integer. Value: `%s`.',byteOffset));
198
+
thrownewTypeError(format('null2C',byteOffset));
199
199
}
200
200
if(nargs===2){
201
201
buf=newUint8Array(buf,byteOffset);
202
202
}else{
203
203
len=arguments[2];
204
204
if(!isNonNegativeInteger(len)){
205
-
thrownewTypeError(format('invalid argument. Length must be a nonnegative integer. Value: `%s`.',len));
thrownewRangeError(format('invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.',len*BYTES_PER_ELEMENT));
0 commit comments