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)
235235function fromString ( str , unsigned , radix ) {
236236 if ( str . length === 0 )
237237 throw Error ( 'empty string' ) ;
238- if ( str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity" )
239- return unsigned ? UZERO : ZERO ;
240238 if ( typeof unsigned === 'number' ) {
241239 // For goog.math.long compatibility
242- radix = unsigned ,
243- unsigned = false ;
240+ radix = unsigned ;
241+ unsigned = false ;
244242 } else {
245243 unsigned = ! ! unsigned ;
246244 }
245+ if ( str === "NaN" || str === "Infinity" || str === "+Infinity" || str === "-Infinity" )
246+ return unsigned ? UZERO : ZERO ;
247247 radix = radix || 10 ;
248248 if ( radix < 2 || 36 < radix )
249249 throw RangeError ( 'radix' ) ;
You can’t perform that action at this time.
0 commit comments