Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index cbe17ae5d47a035b10c9b58916d465dc8f074d09..1f8a4ece50170aea093e703d387b00f44915597c 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -1177,7 +1177,7 @@ RawError* Object::Init(Isolate* isolate, kernel::Program* kernel_program) { |
"Object::Init");) |
#if defined(DART_NO_SNAPSHOT) |
- bool bootstrapping = true; |
+ bool bootstrapping = Dart::vm_snapshot_kind() == Snapshot::kNone; |
#elif defined(DART_PRECOMPILED_RUNTIME) |
bool bootstrapping = false; |
#else |