OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |