Index: runtime/vm/dart.cc |
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
index e3ba4a46f6ff3adf3618b0039a9c026caddafe04..895d6b192b5e6fa137818d574c2d3db8b8532fe7 100644 |
--- a/runtime/vm/dart.cc |
+++ b/runtime/vm/dart.cc |
@@ -464,8 +464,9 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) { |
I->set_ic_miss_code(miss_code); |
if (snapshot_buffer == NULL) { |
- if (!I->object_store()->PreallocateObjects()) { |
- return T->sticky_error(); |
+ const Error& error = Error::Handle(I->object_store()->PreallocateObjects()); |
+ if (!error.IsNull()) { |
+ return error.raw(); |
} |
} |