Skip to content

Commit

Permalink
fix: harden, lockdown, purify were missing from gxSnapshotCallbacks (#16
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dckc authored Nov 11, 2021
1 parent 0df4626 commit d2c13fa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xsnap/sources/xsnap-worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit d2c13fa

Please sign in to comment.