dart-sdk/tests
Alexander Markov 025bfc858e [vm] Fix yield in async* to check if the stream was canceled while generator was suspended
Previously there was a window between the decision to resume generator
and actually running the micro-task. The stream could be canceled
during that window, making running the generator incorrect.

The solution is to check if the stream was canceled right before
resuming the generator in yield/yield*.

This change also unifies yield and yield* to check if the stream
was canceled even before suspending the generator.

TEST=language/async_star/cancel_while_paused_test,
language/async_star/cancel_while_paused_at_yield_test

Fixes https://github.com/dart-lang/sdk/issues/49451

Change-Id: Ib8ff3a2da9a6a7da8766a7dbf28e2c9d618728f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251562
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2022-07-15 14:09:20 +00:00
..
co19 [infra] Remove builder detection from co19 roll scripts 2022-07-15 07:29:54 +00:00
co19_2 [infra] Remove builder detection from co19 roll scripts 2022-07-15 07:29:54 +00:00
corelib [gardening] Mark some tests as Pass, Slow 2022-06-24 13:26:39 +00:00
corelib_2 [gardening] Mark some tests as Pass, Slow 2022-06-24 13:26:39 +00:00
dartdevc Revert "Refactor _Future." 2022-06-09 16:51:55 +00:00
dartdevc_2 Revert "Refactor _Future." 2022-06-09 16:51:55 +00:00
ffi [cfe/ffi] Transform FfiNatives in a single pass 2022-07-08 12:36:09 +00:00
ffi_2 [vm/ffi] Fix constant Finalizables 2022-07-07 08:39:21 +00:00
language [vm] Fix yield in async* to check if the stream was canceled while generator was suspended 2022-07-15 14:09:20 +00:00
language_2 [vm] Fix yield in async* to check if the stream was canceled while generator was suspended 2022-07-15 14:09:20 +00:00
lib [vm] Cleanup old async/async*/sync* implementation from kernel 2022-07-11 18:12:41 +00:00
lib_2 [ dart:developer ] Expose the set of currently registered Metrics 2022-07-11 15:52:18 +00:00
modular [package:js] Add static interop stub for outlines 2022-06-17 19:58:49 +00:00
standalone [embedder] Clean up deprecated secure connection enforcement mechanism. 2022-06-29 16:59:25 +00:00
standalone_2 [embedder] Clean up deprecated secure connection enforcement mechanism. 2022-06-29 16:59:25 +00:00
web [pkg:js] Handle mutually recursive libraries 2022-06-28 18:36:02 +00:00
web_2 Fix typos 2022-05-24 09:10:51 +00:00
legacy_status_dart2js.csv
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
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.