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

Side by Side Diff: dart_vm_standalone/_internal_patch.dart

Issue 2108193002: Change error handling. (Closed) Base URL: git@github.com:dart-lang/rasta.git@master
Patch Set: Address comments Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | dart_vm_standalone/core_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « no previous file | dart_vm_standalone/core_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698