diff options
author | Zhidao HONG <z.hong@f5.com> | 2025-04-03 11:44:57 +0800 |
---|---|---|
committer | hongzhidao <hongzhidao@gmail.com> | 2025-04-03 12:10:21 +0800 |
commit | a4d0f9478dc0fb5c0cd5e9003a208ca3fb8ecb15 (patch) | |
tree | bd3eea5bd0a84dde415693773399a73e31c77fbe /nginx/ngx_stream_js_module.c | |
parent | fd004b1b3b6effae94d37a41b723aef1ec9b90f1 (diff) | |
download | njs-a4d0f9478dc0fb5c0cd5e9003a208ca3fb8ecb15.tar.gz njs-a4d0f9478dc0fb5c0cd5e9003a208ca3fb8ecb15.zip |
QuickJS: fix exception handling during configuration phase.
The issue was introduced in 9010aee (not released yet).
Diffstat (limited to 'nginx/ngx_stream_js_module.c')
-rw-r--r-- | nginx/ngx_stream_js_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c index a7dddd04..b1e175d2 100644 --- a/nginx/ngx_stream_js_module.c +++ b/nginx/ngx_stream_js_module.c @@ -2672,7 +2672,7 @@ ngx_stream_qjs_run_event(ngx_stream_session_t *s, ngx_stream_js_ctx_t *ctx, if (rc == NGX_ERROR) { error: - ngx_qjs_exception(cx, &exception); + ngx_qjs_exception(ctx->engine, &exception); ngx_log_error(NGX_LOG_ERR, c->log, 0, "js exception: %V", &exception); |