From d2c13faf51d287958032141d63d6854d34a0888a Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Thu, 11 Nov 2021 16:42:36 -0600 Subject: [PATCH] fix: harden, lockdown, purify were missing from gxSnapshotCallbacks (#16) --- xsnap/sources/xsnap-worker.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xsnap/sources/xsnap-worker.c b/xsnap/sources/xsnap-worker.c index 31797f1..6aad658 100644 --- a/xsnap/sources/xsnap-worker.c +++ b/xsnap/sources/xsnap-worker.c @@ -64,7 +64,7 @@ extern void modInstallBase64(xsMachine *the); // The order of the callbacks materially affects how they are introduced to // code that runs from a snapshot, so must be consistent in the face of // upgrade. -#define mxSnapshotCallbackCount 17 +#define mxSnapshotCallbackCount 20 xsCallback gxSnapshotCallbacks[mxSnapshotCallbackCount] = { xs_issueCommand, // 0 xs_print, // 1 @@ -87,6 +87,10 @@ xsCallback gxSnapshotCallbacks[mxSnapshotCallbackCount] = { xs_base64_encode, // 15 xs_base64_decode, // 16 + fx_lockdown, // 17 + fx_harden, // 18 + fx_purify, // 19 + // fx_setInterval, // fx_setTimeout, // fx_clearTimer,