Closed stephenwvickers closed 7 years ago
See: https://github.com/mcavage/node-asn1/pull/20/files
@@ -7,7 +7,7 @@ var errors = require('./errors'); ///--- Globals -var newInvalidAsn1Error = errors.newInvalidAsn1Error; +var InvalidAsn1Error = errors.newInvalidAsn1Error; var DEFAULT_OPTS = { size: 1024, @@ -241,7 +241,7 @@ Writer.prototype.writeLength = function(len) { this._buf[this._offset++] = len >> 8; this._buf[this._offset++] = len; } else { - throw new InvalidAsn1ERror('Length too long (> 4 bytes)'); + throw new InvalidAsn1Error('Length too long (> 4 bytes)'); } };
Original requester: @mscdex
See: https://github.com/mcavage/node-asn1/pull/20/files