fix: promise result

This commit is contained in:
cha0s 2024-08-01 14:32:09 -05:00
parent f5d092efaf
commit 770a63897d

View File

@ -119,7 +119,7 @@ export default class Script {
}
return;
}
if (async) {
if (async || value instanceof Promise) {
this.promise = value;
value
.catch(reject ? reject : () => {})