diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2024-01-19 10:19:58 +0100 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2024-01-19 10:19:58 +0100 |
commit | 84058766e9f247cac7b00543feeb10f3bba8120a (patch) | |
tree | 980e5fa5ef9d18be4acddc1733a997f064ac416b /quickjs-libc.h | |
parent | d6c7d169de6fb2c90cd2bd2226ba9dafdef883ce (diff) | |
download | quickjs-84058766e9f247cac7b00543feeb10f3bba8120a.tar.gz quickjs-84058766e9f247cac7b00543feeb10f3bba8120a.zip |
added js_std_await() and use it to wait for the evaluation of a module (github issue #219)
Diffstat (limited to 'quickjs-libc.h')
-rw-r--r-- | quickjs-libc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/quickjs-libc.h b/quickjs-libc.h index fbbe5b0..1dfdf53 100644 --- a/quickjs-libc.h +++ b/quickjs-libc.h @@ -37,6 +37,7 @@ JSModuleDef *js_init_module_std(JSContext *ctx, const char *module_name); JSModuleDef *js_init_module_os(JSContext *ctx, const char *module_name); void js_std_add_helpers(JSContext *ctx, int argc, char **argv); void js_std_loop(JSContext *ctx); +JSValue js_std_await(JSContext *ctx, JSValue obj); void js_std_init_handlers(JSRuntime *rt); void js_std_free_handlers(JSRuntime *rt); void js_std_dump_error(JSContext *ctx); |