Skip to content

Commit e7b7fef

Browse files
hansonrhansonr
authored andcommitted
missing Integer.compareTo$Integer
1 parent 8c66e9f commit e7b7fef

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed
115 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210610220339
1+
20210611154409
115 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20210610220339
1+
20210611154409

sources/net.sf.j2s.java.core/srcjs/js/j2sClazz.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
// Google closure compiler cannot handle Clazz.new or Clazz.super
99

10+
// BH 2021.06.11 Number.compareTo(....) missing
1011
// BH 2021.02.12 implements better(?) interface defaults resolution -- in order of presentation
1112
// BH 2020.12.31 3.3.1-v1 full 64-bit long support; BigDecimal, BigInteger fully 64-bit
1213

@@ -3777,7 +3778,10 @@ Number.prototype._numberToString=Number.prototype.toString;
37773778
Number.__CLASS_NAME__="Number";
37783779
addInterface(Number,java.io.Serializable);
37793780
//extendPrototype(Number, true, false);
3780-
Number.prototype.compareTo$ = Number.prototype.compareTo$Number = Number.prototype.compareTo$O = function(x) { var a = this.valueOf(), b = x.valueOf(); return (a < b ? -1 : a == b ? 0 : 1) };
3781+
Number.prototype.compareTo$ = Number.prototype.compareTo$Number =
3782+
Number.prototype.compareTo$O = Number.prototype.compareTo$Byte = Number.prototype.compareTo$Integer =
3783+
Number.prototype.compareTo$Short = Number.prototype.compareTo$Float = Number.prototype.compareTo$Double =
3784+
function(x) { var a = this.valueOf(), b = x.valueOf(); return (a < b ? -1 : a == b ? 0 : 1) };
37813785

37823786
var $b$ = new Int8Array(1);
37833787
var $s$ = new Int16Array(1);

0 commit comments

Comments
 (0)