From 69ecfbe1fa47422c37c13176f4690b301554d99a Mon Sep 17 00:00:00 2001 From: Malte Ubl Date: Mon, 26 Oct 2026 16:00:46 -0700 Subject: [PATCH] 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. --- packages/runtime/src/scr_dyn.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime/src/scr_dyn.h b/packages/runtime/src/scr_dyn.h index 35bba7a04..841cf69b8 100644 --- a/packages/runtime/src/scr_dyn.h +++ b/packages/runtime/src/scr_dyn.h @@ -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. */