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

Unified Diff: tools/dom/templates/html/impl/impl_DOMException.darttemplate

Issue 1327083002: Revert "Patched in Dartium JsInterop" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
Index: tools/dom/templates/html/impl/impl_DOMException.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_DOMException.darttemplate b/tools/dom/templates/html/impl/impl_DOMException.darttemplate
index 33343c95b08bbcfea2e5a4507ada590491d7852b..be8c36c2b11232a2ceb3f80b5b724d81aa9eddf6 100644
--- a/tools/dom/templates/html/impl/impl_DOMException.darttemplate
+++ b/tools/dom/templates/html/impl/impl_DOMException.darttemplate
@@ -40,36 +40,7 @@ $if DART2JS
return errorName;
}
$endif
-$if JSINTEROP
- String _name;
- String _message;
-
- DomException.jsInterop(String m) {
- var name_index = m.indexOf(': ');
- if (name_index < 0) {
- _name = "";
- _message = m;
- } else {
- _name = m.substring(0, name_index);
- _message = m.substring(name_index + 1).trim();
- }
- }
-
- @DomName('DOMException.message')
- @DocsEditable()
- String get message => _message;
-
- @DomName('DOMException.name')
- @DocsEditable()
- String get name => _name;
-
- @DomName('DOMException.toString')
- @DocsEditable()
- String toString() => "${_name}: $_message";
-
-$else
$!MEMBERS
-$endif
$if DART2JS
@DomName('DOMException.toString')
@DocsEditable()

Powered by Google App Engine
This is Rietveld 408576698