Commit dd96c47a authored by yangguo's avatar yangguo Committed by Commit bot

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}
parent fa32d461
...@@ -38,7 +38,8 @@ class Snapshot : public AllStatic { ...@@ -38,7 +38,8 @@ class Snapshot : public AllStatic {
static bool HaveASnapshotToStartFrom(Isolate* isolate) { static bool HaveASnapshotToStartFrom(Isolate* isolate) {
// Do not use snapshots if the isolate is used to create snapshots. // 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); static bool EmbedsScript(Isolate* isolate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment