Index: lib/compiler/implementation/lib/js_helper.dart |
diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart |
index a961599608584f2ed9c6f2226afca6ad0a82006d..891b69840cf99333ad58a6d07b83335ba9df86aa 100644 |
--- a/lib/compiler/implementation/lib/js_helper.dart |
+++ b/lib/compiler/implementation/lib/js_helper.dart |
@@ -343,9 +343,9 @@ class ListIterator<T> implements Iterator<T> { |
int i; |
List<T> list; |
ListIterator(List<T> this.list) : i = 0; |
- bool hasNext() => i < JS('int', r'#.length', list); |
+ bool get hasNext => i < JS('int', r'#.length', list); |
T next() { |
- if (!hasNext()) throw new NoMoreElementsException(); |
+ if (!hasNext) throw new NoMoreElementsException(); |
var value = JS('Object', r'#[#]', list, i); |
i += 1; |
return value; |
@@ -971,7 +971,7 @@ class StackTrace { |
makeLiteralMap(List keyValuePairs) { |
Iterator iterator = keyValuePairs.iterator(); |
Map result = new LinkedHashMap(); |
- while (iterator.hasNext()) { |
+ while (iterator.hasNext) { |
String key = iterator.next(); |
var value = iterator.next(); |
result[key] = value; |