Skip to content

Commit 1959510

Browse files
committed
deps: allow v8::SnapshotCreator to destruct without creating the blob
1 parent 3c04034 commit 1959510

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deps/v8/src/api/api.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,11 @@ SnapshotCreator::SnapshotCreator(const intptr_t* external_references,
483483

484484
SnapshotCreator::~SnapshotCreator() {
485485
SnapshotCreatorData* data = SnapshotCreatorData::cast(data_);
486-
DCHECK(data->created_);
486+
#ifdef DEBUG
487+
if (!data->created_) {
488+
i::PrintF("Snapshot was not created.\n");
489+
}
490+
#endif
487491
Isolate* isolate = data->isolate_;
488492
isolate->Exit();
489493
isolate->Dispose();

0 commit comments

Comments
 (0)