Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 1975423002: Check snapshots for feature compatibility. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 1faa4eda50f0a5ec60f9ee2ad7652fc62be3dcba..00afa4e06d3cc6d21be9f3451f9f9b3bc963d844 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -1156,18 +1156,14 @@ DART_EXPORT char* Dart_Initialize(
return strdup("Dart_Initialize: "
"Setting of unhandled exception callback is not supported.");
}
- const char* err_msg = Dart::InitOnce(vm_isolate_snapshot,
- instructions_snapshot,
- data_snapshot,
- create, shutdown,
- thread_exit,
- file_open, file_read, file_write,
- file_close, entropy_source,
- get_service_assets);
- if (err_msg != NULL) {
- return strdup(err_msg);
- }
- return NULL;
+ return Dart::InitOnce(vm_isolate_snapshot,
+ instructions_snapshot,
+ data_snapshot,
+ create, shutdown,
+ thread_exit,
+ file_open, file_read, file_write, file_close,
+ entropy_source,
+ get_service_assets);
}
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698