| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library dart._internal_patch; | 5 library dart._internal_patch; |
| 6 | 6 |
| 7 import 'dart:_patch' show | 7 import 'dart:_patch' show |
| 8 patch; | 8 patch; |
| 9 | 9 |
| 10 part '../third_party/dart-sdk/runtime/lib/internal_patch.dart'; | 10 part '../third_party/dart-sdk/runtime/lib/internal_patch.dart'; |
| 11 part '../third_party/dart-sdk/runtime/lib/print_patch.dart'; | 11 part '../third_party/dart-sdk/runtime/lib/print_patch.dart'; |
| 12 part '../third_party/dart-sdk/runtime/lib/symbol_patch.dart'; | 12 part '../third_party/dart-sdk/runtime/lib/symbol_patch.dart'; |
| 13 part '_internal/class_id.dart'; | 13 part '_internal/class_id.dart'; |
| 14 | |
| 15 _dynamicError(int errorKind) { | |
| 16 switch (errorKind) { | |
| 17 case 0: | |
| 18 return (String message) => new TypeError(); | |
| 19 | |
| 20 default: | |
| 21 throw "Unknown error"; | |
| 22 } | |
| 23 } | |
| OLD | NEW |