diff --git a/jdk.js b/jdk.js index c46fae3..3511502 100755 --- a/jdk.js +++ b/jdk.js @@ -233,6 +233,9 @@ trans = e.data; resolve(); }; + worker.onerror = (e) => { + reject(e); + }; }); } else { console.warn( diff --git a/package.json b/package.json index c29fc56..cb0edb1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "java2js", - "version": "1.2.10", + "version": "1.2.11", "description": "Converts Java to JavaScript and runs it with a JS JDK", "main": "jdk.js", "scripts": {