fix: promise result
This commit is contained in:
parent
f5d092efaf
commit
770a63897d
|
@ -119,7 +119,7 @@ export default class Script {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (async) {
|
||||
if (async || value instanceof Promise) {
|
||||
this.promise = value;
|
||||
value
|
||||
.catch(reject ? reject : () => {})
|
||||
|
|
Loading…
Reference in New Issue
Block a user