diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-06-12 02:37:44 +0800 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-06-18 16:03:16 +0200 |
commit | aeda0c3d3575cf10bd7c7dae767a0fa56ffcf56b (patch) | |
tree | fc017f4f8be59cfca29b0f1bda229a86079d6325 /tools | |
parent | 39b10abf63b80516b0744d5a74698543e5cac008 (diff) | |
download | android-node-v8-aeda0c3d3575cf10bd7c7dae767a0fa56ffcf56b.tar.gz android-node-v8-aeda0c3d3575cf10bd7c7dae767a0fa56ffcf56b.tar.bz2 android-node-v8-aeda0c3d3575cf10bd7c7dae767a0fa56ffcf56b.zip |
tools: assert that the snapshot can be rehashed in node_mksnapshot
PR-URL: https://github.com/nodejs/node/pull/28181
Refs: https://github.com/nodejs/node/pull/27365
Refs: https://github.com/nodejs/node/issues/17058
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/snapshot/snapshot_builder.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/snapshot/snapshot_builder.cc b/tools/snapshot/snapshot_builder.cc index 54a4a2e73d..0fd2c49d28 100644 --- a/tools/snapshot/snapshot_builder.cc +++ b/tools/snapshot/snapshot_builder.cc @@ -96,6 +96,7 @@ std::string SnapshotBuilder::Generate( // Must be out of HandleScope StartupData blob = creator.CreateBlob(SnapshotCreator::FunctionCodeHandling::kClear); + CHECK(blob.CanBeRehashed()); // Must be done while the snapshot creator isolate is entered i.e. the // creator is still alive. main_instance->Dispose(); |