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

Unified Diff: sdk/lib/_internal/js_runtime/lib/core_patch.dart

Issue 2901323002: add _CompileTimeError error to dart2js patch (Closed)
Patch Set: Created 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/js_runtime/lib/core_patch.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/core_patch.dart b/sdk/lib/_internal/js_runtime/lib/core_patch.dart
index 3dfa7f068e95143ece9566df9201230cdce72e5b..7c7be1d29024e82710d27fabbcfb86139e39d9ff 100644
--- a/sdk/lib/_internal/js_runtime/lib/core_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/core_patch.dart
@@ -606,6 +606,12 @@ class NoSuchMethodError {
}
}
+class _CompileTimeError extends Error {
+ final String _errorMsg;
+ _CompileTimeError(this._errorMsg);
ahe 2017/05/24 19:53:31 Consider adding this body: { JS("", "debug"); }
Siggi Cherem (dart-lang) 2017/05/24 20:14:18 not sure I follow - did you mean 'debugger' to set
ahe 2017/05/24 20:19:11 Yes, I meant "debugger". This is what the specific
+ String toString() => _errorMsg;
+}
+
@patch
class Uri {
@patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698