From dd96c47a8162b4456c12b7b96e48e46c559b06b1 Mon Sep 17 00:00:00 2001 From: yangguo Date: Fri, 12 Jun 2015 02:36:58 -0700 Subject: [PATCH] External snapshot: allow empty snapshot for external snapshot. R=vogelheim@chromium.org Review URL: https://codereview.chromium.org/1180043003 Cr-Commit-Position: refs/heads/master@{#28989} --- src/snapshot/snapshot.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/snapshot/snapshot.h b/src/snapshot/snapshot.h index 371afef4fc..7f89213f16 100644 --- a/src/snapshot/snapshot.h +++ b/src/snapshot/snapshot.h @@ -38,7 +38,8 @@ class Snapshot : public AllStatic { static bool HaveASnapshotToStartFrom(Isolate* isolate) { // Do not use snapshots if the isolate is used to create snapshots. - return isolate->snapshot_blob() != NULL; + return isolate->snapshot_blob() != NULL && + isolate->snapshot_blob()->data != NULL; } static bool EmbedsScript(Isolate* isolate);