| 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 80d93d3d4b016b31f0727a0c8f4f33e1d654d32c..bb5221ef8c915283a743f416af20f00442a1fe1f 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;
|
|
|