File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ KaitaiStream.prototype.alignToByte = function() {
419
419
KaitaiStream . prototype . readBitsIntBe = function ( n ) {
420
420
// JS only supports bit operations on 32 bits
421
421
if ( n > 32 ) {
422
- throw new Error ( ` readBitsIntBe: the maximum supported bit length is 32 (tried to read ${ n } bits)` ) ;
422
+ throw new Error ( " readBitsIntBe: the maximum supported bit length is 32 (tried to read " + n + " bits)" ) ;
423
423
}
424
424
var bitsNeeded = n - this . bitsLeft ;
425
425
if ( bitsNeeded > 0 ) {
@@ -458,7 +458,7 @@ KaitaiStream.prototype.readBitsInt = KaitaiStream.prototype.readBitsIntBe;
458
458
KaitaiStream . prototype . readBitsIntLe = function ( n ) {
459
459
// JS only supports bit operations on 32 bits
460
460
if ( n > 32 ) {
461
- throw new Error ( ` readBitsIntLe: the maximum supported bit length is 32 (tried to read ${ n } bits)` ) ;
461
+ throw new Error ( " readBitsIntLe: the maximum supported bit length is 32 (tried to read " + n + " bits)" ) ;
462
462
}
463
463
var bitsNeeded = n - this . bitsLeft ;
464
464
if ( bitsNeeded > 0 ) {
You can’t perform that action at this time.
0 commit comments