@@ -287,9 +287,9 @@ function deserializeObject(buffer, index, options, isArray) {
287
287
if ( binarySize < 0 )
288
288
throw new Error ( 'Negative binary type element size found for subtype 0x02' ) ;
289
289
if ( binarySize > totalBinarySize - 4 )
290
- throw new Error ( 'Binary type with subtype 0x02 contains to long binary size' ) ;
290
+ throw new Error ( 'Binary type with subtype 0x02 contains too long binary size' ) ;
291
291
if ( binarySize < totalBinarySize - 4 )
292
- throw new Error ( 'Binary type with subtype 0x02 contains to short binary size' ) ;
292
+ throw new Error ( 'Binary type with subtype 0x02 contains too short binary size' ) ;
293
293
}
294
294
295
295
if ( promoteBuffers && promoteValues ) {
@@ -312,9 +312,9 @@ function deserializeObject(buffer, index, options, isArray) {
312
312
if ( binarySize < 0 )
313
313
throw new Error ( 'Negative binary type element size found for subtype 0x02' ) ;
314
314
if ( binarySize > totalBinarySize - 4 )
315
- throw new Error ( 'Binary type with subtype 0x02 contains to long binary size' ) ;
315
+ throw new Error ( 'Binary type with subtype 0x02 contains too long binary size' ) ;
316
316
if ( binarySize < totalBinarySize - 4 )
317
- throw new Error ( 'Binary type with subtype 0x02 contains to short binary size' ) ;
317
+ throw new Error ( 'Binary type with subtype 0x02 contains too short binary size' ) ;
318
318
}
319
319
320
320
// Copy the data
@@ -508,14 +508,14 @@ function deserializeObject(buffer, index, options, isArray) {
508
508
// Adjust the index
509
509
index = index + objectSize ;
510
510
511
- // Check if field length is to short
511
+ // Check if field length is too short
512
512
if ( totalSize < 4 + 4 + objectSize + stringSize ) {
513
- throw new Error ( 'code_w_scope total size is to short, truncating scope' ) ;
513
+ throw new Error ( 'code_w_scope total size is too short, truncating scope' ) ;
514
514
}
515
515
516
- // Check if totalSize field is to long
516
+ // Check if totalSize field is too long
517
517
if ( totalSize > 4 + 4 + objectSize + stringSize ) {
518
- throw new Error ( 'code_w_scope total size is to long, clips outer document' ) ;
518
+ throw new Error ( 'code_w_scope total size is too long, clips outer document' ) ;
519
519
}
520
520
521
521
// If we are evaluating the functions
0 commit comments