diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2024-07-24 16:30:10 -0700 |
---|---|---|
committer | Dmitry Volyntsev <xeioexception@gmail.com> | 2024-09-03 17:58:54 -0700 |
commit | 8e02600da88bd70a2a4aff88e9bb38fbd849f9f3 (patch) | |
tree | 942717c95b6b07a4b3ace295f9200c08f8cc68ef /nginx/ngx_js.c | |
parent | 65f1e8555e226f0072d69fd673d000639f6428db (diff) | |
download | njs-8e02600da88bd70a2a4aff88e9bb38fbd849f9f3.tar.gz njs-8e02600da88bd70a2a4aff88e9bb38fbd849f9f3.zip |
QuickJS: disabling eval() and Function() in qjs_new_context().
This properly disables eval() after previous attempt in c773ebcaad
(0.8.5). In QuickJS buint-in C level eval API, which is used by njs, is
linked to eval() in JS code. To disable only the JS function
manual modification of global object is required.
Diffstat (limited to 'nginx/ngx_js.c')
0 files changed, 0 insertions, 0 deletions