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

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
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index e980f0930b44c520818725eea6c0eb708d5dde17..b81003fcdb19b10ff247f573ef9d26c2cc36d7a0 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') | runtime/vm/snapshot.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698