Allocate the Node island handle tag by name

#2277 numbers new handle tags from their names, so the islands' tag no
longer picks a value that another branch can take.
This commit is contained in:
Malte Ubl
2026-10-26 16:00:46 -07:00
parent 437ad4ae38
commit 69ecfbe1fa
+2 -2
View File
@@ -207,7 +207,6 @@ typedef enum {
X(NET_SERVER, 3) /* ScrNetServer — net.Server (http.Server rides the same handle) */ \
X(NET_SOCKET, 2) /* ScrNetSocket — net.Socket */ \
X(NET_SOCKET_ADDRESS, 47) /* net.SocketAddress (scr_net.c) */ \
X(NODE_ISLAND, 84) /* a Node island value (scr_node_island_handle.c) */ \
X(PRIVATE_KEY, 65) /* node:crypto PrivateKeyObject (scr_pki.c) */ \
X(PUBLIC_KEY, 66) /* node:crypto PublicKeyObject (scr_pki.c) */ \
X(REGEXP, 26) /* native RegExp, shared compiled pattern */ \
@@ -240,7 +239,8 @@ typedef enum {
X(WORKER, 35)
/* Tags added since the last pin, by name only (see above). */
#define SCR_DYNH_NEW_TAGS(Y)
#define SCR_DYNH_NEW_TAGS(Y) \
Y(NODE_ISLAND) /* a Node island value (scr_node_island_handle.c) */
/* Values below the largest pinned one that no tag holds, each with the
* reason. Never reuse one without removing it here. */