mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 12:58:05 +00:00
b285115893
According to the language specification: 1) When 'break' is executed in the 'await for' loop (in 'main'), the underlying stream subscription is canceled. 2) When async* function ('consume') has stopped at 'yield' or 'yield*', and the stream is canceled, the 'yield' / 'yield*' statement returns without an object. It also means that code in 'consume()' after the loop is not executed and it doesn't append ")" to the log. So the test expectations are fixed to avoid expecting trailing ")" at the log when there is a 'break' out of the 'await for' loop. Fixes https://github.com/dart-lang/sdk/issues/51097 Change-Id: Ia59e87ef84dcb8a0c06a47f497cc97d4c6635d27 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/285343 Reviewed-by: Lasse Nielsen <lrn@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com> |
||
---|---|---|
.. | ||
co19 | ||
co19_2 | ||
corelib | ||
corelib_2 | ||
dartdevc | ||
dartdevc_2 | ||
ffi | ||
ffi_2 | ||
language | ||
language_2 | ||
lib | ||
lib_2 | ||
modular | ||
standalone | ||
standalone_2 | ||
web | ||
web_2 | ||
legacy_status_dart2js.csv | ||
OWNERS | ||
README.md |
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.