| OLD | NEW |
| 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 library dart._js_helper; | 5 library dart._js_helper; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'dart:_foreign_helper' show | 9 import 'dart:_foreign_helper' show |
| 10 JS, | 10 JS, |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 | 860 |
| 861 SyncIterable(this._generator, this._args); | 861 SyncIterable(this._generator, this._args); |
| 862 | 862 |
| 863 // TODO(jmesserly): this should be [Symbol.iterator]() method. Unfortunately | 863 // TODO(jmesserly): this should be [Symbol.iterator]() method. Unfortunately |
| 864 // we have no way of telling the compiler yet, so it will generate an extra | 864 // we have no way of telling the compiler yet, so it will generate an extra |
| 865 // layer of indirection that wraps the SyncIterator. | 865 // layer of indirection that wraps the SyncIterator. |
| 866 _jsIterator() => JS('', '#(...#)', _generator, _args); | 866 _jsIterator() => JS('', '#(...#)', _generator, _args); |
| 867 | 867 |
| 868 Iterator<E> get iterator => new SyncIterator<E>(_jsIterator()); | 868 Iterator<E> get iterator => new SyncIterator<E>(_jsIterator()); |
| 869 } | 869 } |
| 870 |
| 871 class BooleanConversionAssertionError extends AssertionError { |
| 872 toString() => 'Failed assertion: boolean expression must not be null'; |
| 873 } |
| OLD | NEW |