diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2024-01-22 18:03:35 +0100 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2024-01-22 18:03:35 +0100 |
commit | 67723c93e4241508ad1ff9bfad142e39f3f2cf88 (patch) | |
tree | 434c9e3975e1f59afa6a711445fef44d3646854b /quickjs-libc.c | |
parent | 9e561d5c2e986e535484c26385d6e1b8d08a238f (diff) | |
download | quickjs-67723c93e4241508ad1ff9bfad142e39f3f2cf88.tar.gz quickjs-67723c93e4241508ad1ff9bfad142e39f3f2cf88.zip |
fixed js_std_await() in case 'obj' is not a promise (github issue #222)
Diffstat (limited to 'quickjs-libc.c')
-rw-r--r-- | quickjs-libc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |