1
0
mirror of https://github.com/quinton-ashley/java2js synced 2024-12-29 10:11:54 +01:00
This commit is contained in:
Quinton Ashley 2021-11-19 09:56:21 -05:00
parent f82d5bc527
commit 744a0d4887
2 changed files with 4 additions and 1 deletions

View File

@ -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();

View File

@ -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": {