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

Side by Side Diff: tool/input_sdk/private/js_helper.dart

Issue 1993023003: Better boolean conversion tests. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« lib/src/compiler/code_generator.dart ('K') | « tool/input_sdk/private/ddc_runtime/runtime.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698