mirror of
https://github.com/quinton-ashley/java2js
synced 2024-12-29 10:11:54 +01:00
1.0.10
This commit is contained in:
parent
f82d5bc527
commit
744a0d4887
@ -22,6 +22,9 @@ jdk.imports['java.lang.String'].load = async () => {
|
|||||||
String.prototype.equals = function (o) {
|
String.prototype.equals = function (o) {
|
||||||
return this == o;
|
return this == o;
|
||||||
};
|
};
|
||||||
|
String.prototype.toCharArray = function (o) {
|
||||||
|
return this.split('');
|
||||||
|
};
|
||||||
// static methods
|
// static methods
|
||||||
String.valueOf = (c) => {
|
String.valueOf = (c) => {
|
||||||
return c.toString();
|
return c.toString();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "java2js",
|
"name": "java2js",
|
||||||
"version": "1.0.9",
|
"version": "1.0.10",
|
||||||
"description": "Converts Java to JavaScript with support for p5.js and QuintOS.",
|
"description": "Converts Java to JavaScript with support for p5.js and QuintOS.",
|
||||||
"main": "jdk.js",
|
"main": "jdk.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user