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:_debugger' show stackTraceMapper; | 9 import 'dart:_debugger' show stackTraceMapper; |
10 | 10 |
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 // we have no way of telling the compiler yet, so it will generate an extra | 899 // we have no way of telling the compiler yet, so it will generate an extra |
900 // layer of indirection that wraps the SyncIterator. | 900 // layer of indirection that wraps the SyncIterator. |
901 _jsIterator() => JS('', '#(...#)', _generator, _args); | 901 _jsIterator() => JS('', '#(...#)', _generator, _args); |
902 | 902 |
903 Iterator<E> get iterator => new SyncIterator<E>(_jsIterator()); | 903 Iterator<E> get iterator => new SyncIterator<E>(_jsIterator()); |
904 } | 904 } |
905 | 905 |
906 class BooleanConversionAssertionError extends AssertionError { | 906 class BooleanConversionAssertionError extends AssertionError { |
907 toString() => 'Failed assertion: boolean expression must not be null'; | 907 toString() => 'Failed assertion: boolean expression must not be null'; |
908 } | 908 } |
| 909 |
| 910 // Hook to register new global object. |
| 911 void registerGlobalObject(object) {} |
OLD | NEW |