mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-22 13:48:11 +08:00
fixed js_std_await() in case 'obj' is not a promise (github issue #222)
This commit is contained in:
parent
9e561d5c2e
commit
67723c93e4
@ -3974,6 +3974,7 @@ JSValue js_std_await(JSContext *ctx, JSValue obj)
|
||||
} else {
|
||||
/* not a promise */
|
||||
ret = obj;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user