Skip to content

RangeError: Maximum call stack size exceeded #27

@akahmet

Description

@akahmet

RangeError: Maximum call stack size exceeded
at BinaryPack.Unpacker.readInt64 (/usr/src/server/node_modules/binarypack/lib/binarypack.js:115:51)

File need an update as stated below.

BinaryPack.Unpacker.prototype.readUInt64 = function(){
  var bytes = this.cursor.slice(8).buffer;
  return ((((((bytes[0]  * 256 +
               bytes[1]) * 256 +
               bytes[2]) * 256 +
               bytes[3]) * 256 +
               bytes[4]) * 256 +
               bytes[5]) * 256 +
               bytes[6]) * 256 +
               bytes[7];
}

BinaryPack.Unpacker.prototype.readInt64 = function(){
  var uint64 = this.readUInt64();
  console.log(uint64, 'log');
  return (uint64 < Math.pow(2, 63) ) ? uint64 : uint64 - Math.pow(2, 64);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions