File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 8989 var x = this ;
9090
9191 // Enable constructor usage without new.
92- if ( ! ( x instanceof Big ) ) return n === UNDEFINED ? _Big_ ( ) : new Big ( n ) ;
92+ if ( ! ( x instanceof Big ) ) {
93+ return n === UNDEFINED && arguments . length === 0 ? _Big_ ( ) : new Big ( n ) ;
94+ }
9395
9496 // Duplicate.
9597 if ( n instanceof Big ) {
630632
631633 return this . minus ( x . times ( y ) ) ;
632634 } ;
633-
634-
635+
636+
635637 /*
636638 * Return a new Big whose value is the value of this Big negated.
637639 */
Original file line number Diff line number Diff line change @@ -86,7 +86,10 @@ function _Big_() {
8686 var x = this ;
8787
8888 // Enable constructor usage without new.
89- if ( ! ( x instanceof Big ) ) return n === UNDEFINED ? _Big_ ( ) : new Big ( n ) ;
89+ if ( ! ( x instanceof Big ) ) {
90+ return n === UNDEFINED && arguments . length === 0 ? _Big_ ( ) : new Big ( n ) ;
91+ }
92+
9093
9194 // Duplicate.
9295 if ( n instanceof Big ) {
You can’t perform that action at this time.
0 commit comments