Skip to content

Commit 53ed3fa

Browse files
committed
src: generate snapshot with --predictable
nodejs/node#48749
1 parent 7be25b9 commit 53ed3fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

patches/node/feat_optionally_prevent_calling_v8_enablewebassemblytraphandler.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ index 89e0e5524c2102b86bc5506fe49aa0c6fa0f30c1..e58f28e0f0ff8d61f35ec3c5a69aa37c
2222
#endif // NODE_USE_V8_WASM_TRAP_HANDLER
2323
}
2424
diff --git a/src/node.h b/src/node.h
25-
index 9ac0d5addcdd40d5c91d375b626099b95729548a..3ffc51783b0b6dee1c0f0a37d2f52cb1aec2fa3f 100644
25+
index a512d2228e0afcfff765c3fe845e1f22073047d0..36da93a7b41ea450a5f288ec17b61adae46ae178 100644
2626
--- a/src/node.h
2727
+++ b/src/node.h
28-
@@ -272,6 +272,10 @@ enum Flags : uint32_t {
29-
// cppgc::InitializeProcess() before creating a Node.js environment
30-
// and call cppgc::ShutdownProcess() before process shutdown.
28+
@@ -274,6 +274,10 @@ enum Flags : uint32_t {
3129
kNoInitializeCppgc = 1 << 13,
30+
// Initialize the process for predictable snapshot generation.
31+
kGeneratePredictableSnapshot = 1 << 14,
3232
+ // Do not initialize the Web Assembly trap handler. This is used by
3333
+ // embedders to account for the case where it may already have been
3434
+ // initialized - calling it more than once will hard crash.
35-
+ kNoEnableWasmTrapHandler = 1 << 14,
35+
+ kNoEnableWasmTrapHandler = 1 << 15,
3636

3737
// Emulate the behavior of InitializeNodeWithArgs() when passing
3838
// a flags argument to the InitializeOncePerProcess() replacement

0 commit comments

Comments
 (0)