diff --git a/quickjs-libc.c b/quickjs-libc.c index 67fe2f6..6d50a90 100644 --- a/quickjs-libc.c +++ b/quickjs-libc.c @@ -3974,6 +3974,7 @@ JSValue js_std_await(JSContext *ctx, JSValue obj) } else { /* not a promise */ ret = obj; + break; } } return ret;