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

Side by Side Diff: tools/dom/templates/html/impl/impl_DOMException.darttemplate

Issue 895813002: Tweak toString() for better type inference (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
8 8
9 static const String INDEX_SIZE = 'IndexSizeError'; 9 static const String INDEX_SIZE = 'IndexSizeError';
10 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; 10 static const String HIERARCHY_REQUEST = 'HierarchyRequestError';
(...skipping 23 matching lines...) Expand all
34 // Although Safari nightly has updated the name to SecurityError, Safari 5 34 // Although Safari nightly has updated the name to SecurityError, Safari 5
35 // and 6 still return SECURITY_ERR. 35 // and 6 still return SECURITY_ERR.
36 if (Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError'; 36 if (Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError';
37 // Chrome release still uses old string, remove this line when Chrome stable 37 // Chrome release still uses old string, remove this line when Chrome stable
38 // also prints out SyntaxError. 38 // also prints out SyntaxError.
39 if (Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError'; 39 if (Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError';
40 return errorName; 40 return errorName;
41 } 41 }
42 $endif 42 $endif
43 $!MEMBERS 43 $!MEMBERS
44 $if DART2JS
45 @DomName('DOMException.toString')
46 @DocsEditable()
47 String toString() => JS('String', 'String(#)', this);
48 $endif
44 } 49 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/dart2js/impl_URL.darttemplate ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698