Skip to content

Commit 05e74b7

Browse files
hansonrhansonr
authored andcommitted
BH 7/22/2018 adds Boolean.prototype.objectValue()
1 parent a1485db commit 05e74b7

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed
2.97 KB
Binary file not shown.

sources/net.sf.j2s.java.core/src/javajs/util/DebugJS.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@
77

88
public class DebugJS {
99

10-
/**
11-
* Insert a JavaScript debug statement
12-
*
13-
*/
14-
public static void _(String msg) {
15-
/**
16-
* @j2sNative
17-
*
18-
* if (Clazz._debugging) {
19-
*
20-
* debugger;
21-
*
22-
* }
23-
*
24-
*/
25-
{}
26-
}
10+
// /**
11+
// * Insert a JavaScript debug statement
12+
// *
13+
// */
14+
// public static void _(String msg) {
15+
// /**
16+
// * @j2sNative
17+
// *
18+
// * if (Clazz._debugging) {
19+
// *
20+
// * debugger;
21+
// *
22+
// * }
23+
// *
24+
// */
25+
// {}
26+
// }
2727

2828
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
// TODO: CharacterSequence does not implement Java 8 default methods chars() or codePoints()
1111
// It is possible that these might be loaded dynamically.
1212

13+
// BH 7/22/2018 adds Boolean.prototype.objectValue()
1314
// BH 7/22/2018 adds System.getProperty("java.vendor") == "SwingJS/OpenJDK"
1415
// BH 7/22/2018 adds Math.IEEEremainder
1516
// BH 7/20/2018 removes def of Closeable, DataInput, DataOutput, Iterable, Comparator
@@ -4223,6 +4224,7 @@ Float.prototype.objectValue =
42234224
Double.prototype.objectValue = function() {return this.valueOf()};
42244225
Character.prototype.objectValue = function() { return this.value };
42254226
Character.prototype.intValue = function() { return this.value.codePointAt(0) };
4227+
Boolean.prototype.objectValue = function() { return this.toBoolean() };
42264228

42274229

42284230
// TODO: Only asking for problems declaring Date. This is not necessary

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13440,6 +13440,7 @@ if (!J2S._version)
1344013440
// TODO: CharacterSequence does not implement Java 8 default methods chars() or codePoints()
1344113441
// It is possible that these might be loaded dynamically.
1344213442

13443+
// BH 7/22/2018 adds Boolean.prototype.objectValue()
1344313444
// BH 7/22/2018 adds System.getProperty("java.vendor") == "SwingJS/OpenJDK"
1344413445
// BH 7/22/2018 adds Math.IEEEremainder
1344513446
// BH 7/20/2018 removes def of Closeable, DataInput, DataOutput, Iterable, Comparator
@@ -17653,6 +17654,7 @@ Float.prototype.objectValue =
1765317654
Double.prototype.objectValue = function() {return this.valueOf()};
1765417655
Character.prototype.objectValue = function() { return this.value };
1765517656
Character.prototype.intValue = function() { return this.value.codePointAt(0) };
17657+
Boolean.prototype.objectValue = function() { return this.toBoolean() };
1765617658

1765717659

1765817660
// TODO: Only asking for problems declaring Date. This is not necessary

0 commit comments

Comments
 (0)