Skip to content

Conversation

srujzs
Copy link
Contributor

@srujzs srujzs commented Sep 25, 2025

Fixes #2638

Fields are cached after their first execution. When debugging, this means we may not hit the body of the field when using the AMD module format. The DDC library bundle format always has a getter for fields, however, even with the cached value.

To make the test consistent for all formats, we should avoid any previous executions of the field by using an evaluate call instead of a periodic timer in main.

This requires moving the dot shorthands test to its own fixture.

Fixes dart-lang#2638

Fields are cached after their first execution. When debugging, this
means we may not hit the body of the field when using the AMD
module format. The DDC library bundle format always has a getter for
fields, even with the cached value, however.

To make the test consistent, we should avoid any previous executions
of the field by using an evaluate call instead of a periodic timer
in main.

This requires moving the dot shorthands test to its own fixture.
@srujzs srujzs merged commit 5b4cc4f into dart-lang:main Sep 29, 2025
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate inconsistencies between running ’dot shorthands: single-stepping’ test with ModuleFormat.ddc v.s. with ModuleFormat.amd
2 participants