aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_stream_js_module.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2023-12-14 22:32:02 -0800
committerDmitry Volyntsev <xeioex@nginx.com>2023-12-14 22:32:02 -0800
commit76552eab1cdb65dd4624a6abe1b943fd27e9b87a (patch)
tree2477986543a71054ab84fc72abbfc9adcb97f29b /nginx/ngx_stream_js_module.c
parent2208f08f1988d73b2d525158a6dda13d380e76ca (diff)
downloadnjs-76552eab1cdb65dd4624a6abe1b943fd27e9b87a.tar.gz
njs-76552eab1cdb65dd4624a6abe1b943fd27e9b87a.zip
Moving out logger from njs core.
Logger is not part of the JS runtime according to ECMAScript and should be implemented by host environment.
Diffstat (limited to 'nginx/ngx_stream_js_module.c')
-rw-r--r--nginx/ngx_stream_js_module.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/nginx/ngx_stream_js_module.c b/nginx/ngx_stream_js_module.c
index 6f7d0cc0..65128365 100644
--- a/nginx/ngx_stream_js_module.c
+++ b/nginx/ngx_stream_js_module.c
@@ -608,11 +608,6 @@ static njs_external_t ngx_stream_js_ext_session_flags[] = {
};
-static njs_vm_ops_t ngx_stream_js_ops = {
- ngx_js_logger,
-};
-
-
static uintptr_t ngx_stream_js_uptr[] = {
offsetof(ngx_stream_session_t, connection),
(uintptr_t) ngx_stream_js_pool,
@@ -1784,7 +1779,6 @@ ngx_stream_js_init_conf_vm(ngx_conf_t *cf, ngx_js_loc_conf_t *conf)
options.backtrace = 1;
options.unhandled_rejection = NJS_VM_OPT_UNHANDLED_REJECTION_THROW;
- options.ops = &ngx_stream_js_ops;
options.metas = &ngx_stream_js_metas;
options.addons = njs_stream_js_addon_modules;
options.argv = ngx_argv;