File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -235,15 +235,15 @@ var pow_dbl = Math.pow; // Used 4 times (4*8 to 15+4)
235
235
function fromString ( str , unsigned , radix ) {
236
236
if ( str . length === 0 )
237
237
throw Error ( 'empty string' ) ;
238
- if ( str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity" )
239
- return unsigned ? UZERO : ZERO ;
240
238
if ( typeof unsigned === 'number' ) {
241
239
// For goog.math.long compatibility
242
- radix = unsigned ,
243
- unsigned = false ;
240
+ radix = unsigned ;
241
+ unsigned = false ;
244
242
} else {
245
243
unsigned = ! ! unsigned ;
246
244
}
245
+ if ( str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity" )
246
+ return unsigned ? UZERO : ZERO ;
247
247
radix = radix || 10 ;
248
248
if ( radix < 2 || 36 < radix )
249
249
throw RangeError ( 'radix' ) ;
You can’t perform that action at this time.
0 commit comments