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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 1497033003: - Remove the legacy debug protocol. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 5813227af2c87faff7e3d17cc4aed827b25c10b0..59710238c776b4a95fa44aa380831aa0271f4b4f 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -1124,9 +1124,17 @@ DART_EXPORT char* Dart_Initialize(
if ((instructions_snapshot != NULL) && !FLAG_precompilation) {
return strdup("Flag --precompilation was not specified.");
}
+ if (interrupt != NULL) {
+ return strdup("Dart_Initialize: "
+ "Setting of interrupt callback is not supported.");
+ }
+ if (unhandled != NULL) {
+ return strdup("Dart_Initialize: "
+ "Setting of unhandled exception callback is not supported.");
+ }
const char* err_msg = Dart::InitOnce(vm_isolate_snapshot,
instructions_snapshot,
- create, interrupt, unhandled, shutdown,
+ create, shutdown,
file_open, file_read, file_write,
file_close, entropy_source,
get_service_assets);

Powered by Google App Engine
This is Rietveld 408576698