fix: promise result
This commit is contained in:
parent
f5d092efaf
commit
770a63897d
|
@ -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 : () => {})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user