Add BigNumber.prototype.toJSON

This commit is contained in:
Michael Mclaughlin 2014-11-13 20:17:39 +00:00
parent 844a1ae664
commit 6d318fd92a
1 changed files with 1 additions and 1 deletions

View File

@ -1981,7 +1981,7 @@
/*
* Return as toString, but do not accept a base argument.
*/
P['valueOf'] = function () {
P['valueOf'] = P['toJSON'] = function () {
return this['toS']();
};