Opened 9 years ago

Last modified 8 years ago

#12174 closed defect

dojox.math.BigInteger not usable with base 10 — at Initial Version

Reported by: rdunklau Owned by: anonymous
Priority: high Milestone: 1.8
Component: Dojox Version: 1.6.0b1
Keywords: Cc:
Blocked By: Blocking:

Description

I tried to use dojox.math.BigInteger? to perform client-side checksum calculation, and I stumbled upon several bugs.

Steps to reproduce: Executes the attached code. Note that it succeeds at instantiating bigints in base 16, but not in base 10.

Solutions: It seems that some functions are not properly exported from BigInteger? to BigInteger?-ext. For example, the fromRadix method is accessed as if it were public in BigInteger?, although it is only defined in BigInteger?-ext and as a protected method (named _fromRadix). Same goes for the intAt function, defined in BigInteger?, and not exported in the namespace to be used by BigInteger?-ext.

I'm willing to submit a patch and a CLA for these.

Change History (1)

Changed 9 years ago by rdunklau

Attachment: testcase.js added
Note: See TracTickets for help on using tickets.