Opened 9 years ago

Last modified 8 years ago

#12174 closed defect

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

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

Description (last modified by bill)

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 (2)

Changed 9 years ago by rdunklau

Attachment: testcase.js added

comment:1 Changed 9 years ago by bill

Component: GeneralDojox
Description: modified (diff)
Owner: changed from anonymous to Eugene Lazutkin

Looks like Eugene owns this file?

Note: See TracTickets for help on using tickets.