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

Unified Diff: lib/html/scripts/systemhtml.py

Issue 11086017: Fix some type narrowing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/scripts/systemhtml.py
diff --git a/lib/html/scripts/systemhtml.py b/lib/html/scripts/systemhtml.py
index 6e377f0f8e0c10fdb35e47bd4da7ed44f07f7362..e96a578d364bbef54657091a22c43fcfa44d6617 100644
--- a/lib/html/scripts/systemhtml.py
+++ b/lib/html/scripts/systemhtml.py
@@ -1057,11 +1057,8 @@ class Dart2JSBackend(object):
return self._NarrowToImplementationType(type_name)
def _NarrowOutputType(self, type_name):
- secure_name = SecureOutputType(self, type_name)
- if (type_name == secure_name):
- return self._NarrowToImplementationType(type_name)
- else:
- return secure_name
+ secure_name = SecureOutputType(self, type_name, True)
+ return self._NarrowToImplementationType(secure_name)
def _FindShadowedAttribute(self, attr, merged_interfaces={}):
"""Returns (attribute, superinterface) or (None, None)."""
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698