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

Side by Side Diff: runtime/lib/errors_patch.dart

Issue 260713008: Add support for javascript incompatibility warnings. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/lib/object.cc » ('j') | runtime/vm/symbols.h » ('J')
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 class Error { 5 patch class Error {
6 /* patch */ static String _objectToString(Object object) { 6 /* patch */ static String _objectToString(Object object) {
7 return Object._toString(object); 7 return Object._toString(object);
8 } 8 }
9 9
10 /* patch */ StackTrace get stackTrace => _stackTrace; 10 /* patch */ StackTrace get stackTrace => _stackTrace;
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 return msg_buf.toString(); 327 return msg_buf.toString();
328 } 328 }
329 } 329 }
330 330
331 class _JavascriptIntegerOverflowError extends Error { 331 class _JavascriptIntegerOverflowError extends Error {
332 final Object _value; 332 final Object _value;
333 333
334 _JavascriptIntegerOverflowError(this._value); 334 _JavascriptIntegerOverflowError(this._value);
335 String toString() => "Javascript Integer Overflow: $_value"; 335 String toString() => "Javascript Integer Overflow: $_value";
336 } 336 }
337
338 class _JavascriptCompatibilityError extends Error {
339 final String _msg;
340
341 _JavascriptCompatibilityError(this._msg);
342 String toString() => "Javascript Compatibility Error: $_msg";
343 }
344
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/object.cc » ('j') | runtime/vm/symbols.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698