]> git.kaiwu.me - njs.git/commit
Optimized qjs_to_bytes().
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 8 Oct 2024 05:46:40 +0000 (22:46 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 8 Oct 2024 23:03:08 +0000 (16:03 -0700)
commit39a2d4bf212346d1487e4d27383453cafefa17ea
tree7f2264cddb63fbca1bc68a43181f56a2987dd2be
parent3a4349e6b2b001001c64dd48f7863c5820cdf3e6
Optimized qjs_to_bytes().

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