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

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 2931903003: Get the name and message from DOMException correctly (Closed)
Patch Set: Created 3 years, 6 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:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 34c3446578fb817afe430ba8a55efab6cf3a24db..fe9efb37e12b09fc87b51e390cb648ab24df8f03 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -11724,13 +11724,6 @@ class DomException extends DartHtmlDomObject {
throw new UnsupportedError("Not supported");
}
- @Deprecated("Internal Use Only")
- static DomException internalCreateDomException() {
- return new DomException._internalWrap();
- }
-
- external factory DomException._internalWrap();
-
@Deprecated("Internal Use Only")
DomException.internal_() {}
@@ -11748,15 +11741,18 @@ class DomException extends DartHtmlDomObject {
@DomName('DOMException.message')
@DocsEditable()
- String get message => _message;
+ String get message =>
+ _message ??
+ (_message = _blink.BlinkDOMException.instance.message_Getter_(this));
@DomName('DOMException.name')
@DocsEditable()
- String get name => _name;
+ String get name =>
+ _name ?? (_name = _blink.BlinkDOMException.instance.name_Getter_(this));
@DomName('DOMException.toString')
@DocsEditable()
- String toString() => "${_name}: $_message";
+ String toString() => "$name: $message";
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a

Powered by Google App Engine
This is Rietveld 408576698