dartist / dart-bignum

Other
14 stars 11 forks source link

create static const method to init the BigInteger class to avoid dart2js optimization #4

Closed adam-singer closed 12 years ago

adam-singer commented 12 years ago

dart2js optimizes away some important methods on BigInteger, bug has been filed with dart team 4799 A workaround will be to call something like

BigInteger.init();

where init is

static const init() {
    new BigInteger(5).mod(new BigInteger(5));
}
adam-singer commented 12 years ago

fixed keep noted that this is a work around for existing bugs with dart2js