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; return;
} }
if (async) { if (async || value instanceof Promise) {
this.promise = value; this.promise = value;
value value
.catch(reject ? reject : () => {}) .catch(reject ? reject : () => {})