| Index: runtime/vm/dart.cc
|
| diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
|
| index fcc35014e832486b8cab4d7f14f3597c34842024..4f6ee5b310121d4781e6a65cf5b740ff3cd8fb39 100644
|
| --- a/runtime/vm/dart.cc
|
| +++ b/runtime/vm/dart.cc
|
| @@ -49,8 +49,9 @@ class PremarkingVisitor : public ObjectVisitor {
|
|
|
| // TODO(turnidge): We should add a corresponding Dart::Cleanup.
|
| const char* Dart::InitOnce(Dart_IsolateCreateCallback create,
|
| - Dart_IsolateInterruptCallback interrupt,
|
| - Dart_IsolateShutdownCallback shutdown) {
|
| + Dart_IsolateInterruptCallback interrupt,
|
| + Dart_IsolateUnhandledExceptionCallback unhandled,
|
| + Dart_IsolateShutdownCallback shutdown) {
|
| // TODO(iposva): Fix race condition here.
|
| if (vm_isolate_ != NULL || !Flags::Initialized()) {
|
| return "VM already initialized.";
|
| @@ -90,6 +91,7 @@ const char* Dart::InitOnce(Dart_IsolateCreateCallback create,
|
| Isolate::SetCurrent(NULL); // Unregister the VM isolate from this thread.
|
| Isolate::SetCreateCallback(create);
|
| Isolate::SetInterruptCallback(interrupt);
|
| + Isolate::SetUnhandledExceptionCallback(unhandled);
|
| Isolate::SetShutdownCallback(shutdown);
|
| return NULL;
|
| }
|
|
|