mirror of
https://github.com/quinton-ashley/java2js
synced 2024-12-29 10:11:54 +01:00
1.1.6
This commit is contained in:
parent
ebdb252001
commit
ca126ecfa8
3
jdk.js
3
jdk.js
@ -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);
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user