]> git.kaiwu.me - njs.git/commit
Optimized ngx_qjs_string().
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 8 Oct 2024 05:41:24 +0000 (22:41 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 8 Oct 2024 23:03:08 +0000 (16:03 -0700)
commit3a4349e6b2b001001c64dd48f7863c5820cdf3e6
tree0cda6b6cb623236a57395e0c8309d861dcc507c7
parent30a965832bb68b232fa2007919267f8827661800
Optimized ngx_qjs_string().

Doing JS_IsString() check first before a heavy-weight call to
JS_GetTypedArrayBuffer() which throws an exception when argument is not
a typed array.
nginx/ngx_js.c