From f8ba885b8cc0df2dfd4813c97ba371b7347a68f3 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Fri, 26 Mar 2021 18:51:54 +0800 Subject: [PATCH] fix: require error Signed-off-by: MiaoWoo --- pom.xml | 2 +- src/main/resources/core/require.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 9e713cd..0ec107d 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 pw.yumc MiaoScript - 0.11.1 + 0.11.2 502647092 diff --git a/src/main/resources/core/require.js b/src/main/resources/core/require.js index ff01885..46382ba 100644 --- a/src/main/resources/core/require.js +++ b/src/main/resources/core/require.js @@ -52,7 +52,7 @@ // @ts-ignore var URL = Java.type('java.net.URL') // @ts-ignore - var Thread = Java.type('java.net.URL') + var Thread = Java.type('java.lang.Thread') // @ts-ignore var FutureTask = Java.type('java.util.concurrent.FutureTask') // @ts-ignore @@ -403,7 +403,7 @@ return _require(download(name), path, optional) } catch (ex) { notFoundModules[name] = true - throw new FileNotFoundException("Can't found module " + name + ' in directory ' + path + ' ERROR: ' + ex) + throw new FileNotFoundException("Can't found module " + name + ' in directory ' + path + ' ERROR: ' + ex, ex) } } setCacheModule(file, optional)