Skip to content

Commit 7004fc2

Browse files
gahaaspthier
authored andcommitted
Disable node snapshots (#245)
A security fix in V8 makes it impossible to put FunctionTemplateInfo objects of API functions with fast API callbacks into the snapshot. As Node.js does that so far, this PR disables node snapshots. In the future, FunctionTemplateInfo objects without fast API callbacks could be added back to the snapshot.
1 parent 23c14a9 commit 7004fc2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎node.gni‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ declare_args() {
7676
# TODO(zcbenz): There are few broken things for now:
7777
# 1. cross-os compilation is not supported.
7878
# 2. node_mksnapshot crashes when cross-compiling for x64 from arm64.
79-
node_use_node_snapshot = (host_os == target_os) && !(host_cpu == "arm64" && target_cpu == "x64")
79+
# node_use_node_snapshot = (host_os == target_os) && !(host_cpu == "arm64" && target_cpu == "x64")
80+
81+
# Disable snapshot for now. Node.js currently puts `FunctionTemplateInfo`
82+
# objects into the snapshot, but that only works for `FunctionTemplateInfo`
83+
# objects of API functions that do not support fast API calls.
84+
node_use_node_snapshot = false
8085

8186
# Build with Amaro (TypeScript utils).
8287
node_use_amaro = true

0 commit comments

Comments
 (0)