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 2022-02-13 01:05:07 -05:00
parent ebdb252001
commit ca126ecfa8
2 changed files with 2 additions and 3 deletions

3
jdk.js
View File

@ -238,7 +238,6 @@
});
trans = trans.replace(/(\([^\(\)]*\) =>)/gm, 'async $1');
trans = trans.replace(/([\w_\$]+\.next(Int|Float|Double|Line|Short|Long)*\(\))/gm, 'await $1');
let prefix = `((jdk.imports['games_java.${className}'] = {}).load = async () => {\n\n`;
@ -19417,7 +19416,7 @@
let method = `${name}(${parameters}){${preblock}${block}}`;
if (
typeof QuintOS != 'undefined' &&
/(alert|prompt|delay|erase|eraseRect|text|textRect|frame)/gm.test(block)
/(alert|prompt|delay|erase|eraseRect|text|textRect|frame|print)/gm.test(block)
)
method = 'async ' + method;
classProps.push(method);

View File

@ -1,6 +1,6 @@
{
"name": "java2js",
"version": "1.1.5",
"version": "1.1.6",
"description": "Converts Java to JavaScript with support for p5.js and QuintOS.",
"main": "jdk.js",
"scripts": {