fixed js_std_await() in case 'obj' is not a promise (github issue #222)
This commit is contained in:
parent
9e561d5c2e
commit
67723c93e4
1 changed files with 1 additions and 0 deletions
|
@ -3974,6 +3974,7 @@ JSValue js_std_await(JSContext *ctx, JSValue obj)
|
||||||
} else {
|
} else {
|
||||||
/* not a promise */
|
/* not a promise */
|
||||||
ret = obj;
|
ret = obj;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue