Skip to content

Commit 793c0d5

Browse files
committed
Adds Integer.signum
1 parent 33f6853 commit 793c0d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,6 +2889,12 @@ function(){
28892889
return this.valueOf();
28902890
});
28912891

2892+
m$(Integer,"signum",
2893+
function(){
2894+
return Math.signum(this.valueOf());
2895+
});
2896+
2897+
28922898
// Note that Long is problematic in JavaScript
28932899

28942900
Clazz._setDeclared("java.lang.Long", java.lang.Long=Long=function(){

0 commit comments

Comments
 (0)