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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/patch/core_patch.dart

Issue 2953693002: Add FallThroughError patch (Closed)
Patch Set: Created 3 years, 6 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 | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Patch file for dart:core classes. 5 // Patch file for dart:core classes.
6 import "dart:_internal" as _symbol_dev; 6 import "dart:_internal" as _symbol_dev;
7 import 'dart:_interceptors'; 7 import 'dart:_interceptors';
8 import 'dart:_js_helper' 8 import 'dart:_js_helper'
9 show 9 show
10 patch, 10 patch,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 return jsonEncodeNative(string); 158 return jsonEncodeNative(string);
159 } 159 }
160 160
161 @patch 161 @patch
162 StackTrace get stackTrace => Primitives.extractStackTrace(this); 162 StackTrace get stackTrace => Primitives.extractStackTrace(this);
163 } 163 }
164 164
165 @patch 165 @patch
166 class FallThroughError { 166 class FallThroughError {
167 @patch 167 @patch
168 FallThroughError._create(String url, int line);
169
170 @patch
168 String toString() => super.toString(); 171 String toString() => super.toString();
169 } 172 }
170 173
171 @patch 174 @patch
172 class AbstractClassInstantiationError { 175 class AbstractClassInstantiationError {
173 @patch 176 @patch
174 String toString() => "Cannot instantiate abstract class: '$_className'"; 177 String toString() => "Cannot instantiate abstract class: '$_className'";
175 } 178 }
176 179
177 /// An interface type for all Strong-mode errors. 180 /// An interface type for all Strong-mode errors.
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 static StackTrace get current { 658 static StackTrace get current {
656 return getTraceFromException(JS('', 'new Error()')); 659 return getTraceFromException(JS('', 'new Error()'));
657 } 660 }
658 } 661 }
659 662
660 @patch 663 @patch
661 class _ConstantExpressionError { 664 class _ConstantExpressionError {
662 @patch 665 @patch
663 _throw(error) => throw error; 666 _throw(error) => throw error;
664 } 667 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698