| Index: runtime/vm/exceptions_test.cc
|
| diff --git a/runtime/vm/exceptions_test.cc b/runtime/vm/exceptions_test.cc
|
| index 5fbfaa240fca84bdc305713b1b2022a28b821e4c..55ca3941981b626c2eed2b2b208fdd3626cd7cc9 100644
|
| --- a/runtime/vm/exceptions_test.cc
|
| +++ b/runtime/vm/exceptions_test.cc
|
| @@ -9,11 +9,9 @@
|
|
|
| namespace dart {
|
|
|
| -
|
| #define FUNCTION_NAME(name) UnhandledExcp_##name
|
| #define REGISTER_FUNCTION(name, count) {"" #name, FUNCTION_NAME(name), count},
|
|
|
| -
|
| void FUNCTION_NAME(Unhandled_equals)(Dart_NativeArguments args) {
|
| NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
|
| const Instance& expected = Instance::CheckedHandle(arguments->NativeArgAt(0));
|
| @@ -25,7 +23,6 @@ void FUNCTION_NAME(Unhandled_equals)(Dart_NativeArguments args) {
|
| }
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Unhandled_invoke)(Dart_NativeArguments args) {
|
| // Invoke the specified entry point.
|
| Dart_Handle cls = Dart_GetClass(TestCase::lib(), NewString("Second"));
|
| @@ -35,7 +32,6 @@ void FUNCTION_NAME(Unhandled_invoke)(Dart_NativeArguments args) {
|
| return;
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Unhandled_invoke2)(Dart_NativeArguments args) {
|
| // Invoke the specified entry point.
|
| Dart_Handle cls = Dart_GetClass(TestCase::lib(), NewString("Second"));
|
| @@ -49,7 +45,6 @@ void FUNCTION_NAME(Unhandled_invoke2)(Dart_NativeArguments args) {
|
| return;
|
| }
|
|
|
| -
|
| // List all native functions implemented in the vm or core boot strap dart
|
| // libraries so that we can resolve the native function to it's entry
|
| // point.
|
| @@ -58,14 +53,12 @@ void FUNCTION_NAME(Unhandled_invoke2)(Dart_NativeArguments args) {
|
| V(Unhandled_invoke, 0) \
|
| V(Unhandled_invoke2, 0)
|
|
|
| -
|
| static struct NativeEntries {
|
| const char* name_;
|
| Dart_NativeFunction function_;
|
| int argument_count_;
|
| } BuiltinEntries[] = {UNHANDLED_NATIVE_LIST(REGISTER_FUNCTION)};
|
|
|
| -
|
| static Dart_NativeFunction native_lookup(Dart_Handle name,
|
| int argument_count,
|
| bool* auto_setup_scope) {
|
| @@ -86,7 +79,6 @@ static Dart_NativeFunction native_lookup(Dart_Handle name,
|
| return NULL;
|
| }
|
|
|
| -
|
| // Unit test case to verify unhandled exceptions.
|
| TEST_CASE(UnhandledExceptions) {
|
| const char* kScriptChars =
|
|
|