bang590 / JSPatch

JSPatch bridge Objective-C and Javascript using the Objective-C runtime. You can call any Objective-C class and method in JavaScript by just including a small engine. JSPatch is generally used to hotfix iOS App.
MIT License
11.37k stars 2.24k forks source link

NSDecimalNumber dividing crash #829

Open zhangxiangguang opened 6 years ago

zhangxiangguang commented 6 years ago
    var decimalNumber = NSDecimalNumber.decimalNumberWithString('12345678');
    console.log('log --> ' + decimalNumber); //log --> 12345678

    var dividingNumber = NSDecimalNumber.decimalNumberWithString('100');
    console.log('log --> ' + dividingNumber); //log --> 100

    //crash
    var number = decimalNumber.decimalNumberByDividingBy(dividingNumber);
    console.log('log --> ' + number);