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-12 11:46:14 -05:00
parent 213f552d52
commit ebdb252001
2 changed files with 5 additions and 2 deletions

5
jdk.js
View File

@ -19415,7 +19415,10 @@
? initVars.join('') + (block ? opts.separator : '')
: '';
let method = `${name}(${parameters}){${preblock}${block}}`;
if (typeof QuintOS != 'undefined' && /(alert|prompt|erase|eraseRect|text|textRect|frame)/gm.test(block))
if (
typeof QuintOS != 'undefined' &&
/(alert|prompt|delay|erase|eraseRect|text|textRect|frame)/gm.test(block)
)
method = 'async ' + method;
classProps.push(method);
}

View File

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