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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/lib/object.cc » ('j') | runtime/vm/symbols.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/errors_patch.dart
===================================================================
--- runtime/lib/errors_patch.dart (revision 36000)
+++ runtime/lib/errors_patch.dart (working copy)
@@ -334,3 +334,11 @@
_JavascriptIntegerOverflowError(this._value);
String toString() => "Javascript Integer Overflow: $_value";
}
+
+class _JavascriptCompatibilityError extends Error {
+ final String _msg;
+
+ _JavascriptCompatibilityError(this._msg);
+ String toString() => "Javascript Compatibility Error: $_msg";
+}
+
« 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