mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-26 07:38:13 +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 {
|
} else {
|
||||||
/* not a promise */
|
/* not a promise */
|
||||||
ret = obj;
|
ret = obj;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user