mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:44:27 +00:00
add _CompileTimeError error to dart2js patch
See https://github.com/dart-lang/sdk/issues/29661 for context R=ahe@google.com Review-Url: https://codereview.chromium.org/2901323002 .
This commit is contained in:
parent
2187f5232d
commit
80942f15cf
1 changed files with 7 additions and 0 deletions
|
@ -606,6 +606,13 @@ class NoSuchMethodError {
|
|||
}
|
||||
}
|
||||
|
||||
class _CompileTimeError extends Error {
|
||||
final String _errorMsg;
|
||||
// TODO(sigmund): consider calling `JS("", "debugger")`.
|
||||
_CompileTimeError(this._errorMsg);
|
||||
String toString() => _errorMsg;
|
||||
}
|
||||
|
||||
@patch
|
||||
class Uri {
|
||||
@patch
|
||||
|
|
Loading…
Reference in a new issue