dart-sdk/tests
Ömer Sinan Ağacan 1d0a7b28e3 [dart2wasm] Fix while statement context allocation in async functions
When compiling a `while` in an `async` function, we need to allocate the
context for the `while` *before* compiling the `while` condition,
because any variables introduced in `while` condition will be stored in
the `while` context, rather than the parent context.

Instead of fixing where we allocate `while` context, we could update
`CaptureFinder` to add variables in the condition to the parent context,
and update `for` code generator, as it currently allocates `for` context
before the conditions.

I don't know if that has any advantages, for now it should be OK to
update `while` code generator.

`for` code generator allocates the context before the conditions and
does not have this issue.

Fixes #54406.

Change-Id: I3c6bb7558a352d78c8f8a46a56d9bd3af68841a5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342760
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Ömer Ağacan <omersa@google.com>
2023-12-20 16:39:59 +00:00
..
co19 [co19] Roll co19 to ea5e476b3af94f74f6996e4b4319bf03f9248c1c 2023-12-11 09:55:05 +00:00
corelib Remove unnecessary print in corelib/uri_base_test.dart. 2023-11-29 17:37:28 +00:00
dartdevc [ddc] Update dynamic NSM errors to match 2023-12-14 00:51:50 +00:00
ffi [vm/ffi] Improve error messages on Windows 2023-12-20 13:24:16 +00:00
language [macros] Add language tests for macro class augmentation. 2023-12-20 09:27:18 +00:00
lib [dart:js_interop] Add generics to JSArray and JSPromise 2023-12-12 04:50:13 +00:00
modular [tests] Add repro for cross module constant 2023-11-13 22:21:40 +00:00
standalone Fix Directory.current setter compatibility with IOOverrides 2023-12-18 20:23:21 +00:00
web [dart2wasm] Fix while statement context allocation in async functions 2023-12-20 16:39:59 +00:00
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.