Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index 80c3daea746f6c6704c88ef58386cd469b4dacc8..e8576f5940d599b30617984b46342c1cffbc1dc7 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -986,7 +986,9 @@ class Isolate { |
} |
bool serializer_enabled() const { return serializer_enabled_; } |
- bool snapshot_available() const { return snapshot_blob_ != NULL; } |
+ bool snapshot_available() const { |
+ return snapshot_blob_ != NULL && snapshot_blob_->raw_size != 0; |
vogelheim
2015/04/01 17:02:13
When does this happen?
I'm a bit surprised. I don
Erik Corry
2015/04/01 17:07:29
This isn't the embedder giving us an empty snapsho
vogelheim
2015/04/01 17:21:09
Oh. :-(
I guess it shouldn't do that; but since i
|
+ } |
bool IsDead() { return has_fatal_error_; } |
void SignalFatalError() { has_fatal_error_ = true; } |