fixed js_std_await() in case 'obj' is not a promise (github issue #222)

This commit is contained in:
Fabrice Bellard 2024-01-22 18:03:35 +01:00
parent 9e561d5c2e
commit 67723c93e4

View File

@ -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;