andyperlitch / jsbn

The jsbn library is a fast, portable implementation of large-number math in pure JavaScript, enabling public-key crypto and other applications on desktop and mobile browsers.
Other
167 stars 41 forks source link

Fails with frozen Object.prototype #26

Open andvgal opened 6 years ago

andvgal commented 6 years ago

BigInteger.prototype.toString fails to be, if Object.freeze(Object.prototype) is called before.

PR: https://github.com/andyperlitch/jsbn/pull/25

Bonus: ~1.5K size reduction