indutny / asn1.js

ASN.1 Decoder/Encoder/DSL
MIT License
184 stars 64 forks source link

asn1.js encoder is broken after minification #43

Closed muromec closed 9 years ago

muromec commented 9 years ago

EncodeBuffer constructor relies on constructor function name which can be mangled when source code is minified.

here it is: https://github.com/indutny/asn1.js/blob/master/lib/asn1/base/buffer.js#L69

can be fixed by using instance of instead.

indutny commented 9 years ago

Fixed, thank you!