]> git.kaiwu.me - quickjs.git/commit
Add C API function JS_GetClassID()
authorTyler Rockwood <rockwotj@gmail.com>
Tue, 20 Feb 2024 08:29:08 +0000 (09:29 +0100)
committerCharlie Gordon <github@chqrlie.org>
Wed, 21 Feb 2024 14:33:37 +0000 (15:33 +0100)
commitb91a2aec67aace092fd4f8bdbaa49487fce86960
tree4d702daa10ca26328f582561f501d5d8c64f0f3d
parent12c91df5774c5174d6b3191cfc0dbc9cc396755d
Add C API function JS_GetClassID()

If you want to extend a built-in class you need it's class ID and there
is no robust way to get that without this accessor.

* add JS_INVALID_CLASS_ID constant for invalid class ID.

Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
quickjs.c
quickjs.h