Skip to content

Incremental transformations required to use transformations with Expression Compilation #32061

Open
@sjindel-google

Description

@sjindel-google

Although asynchronous expressions are disallowed by the expression compilation API, asynchronous
code can still appear within a synchronous expression:

new Future.value(0).then((x) async => x + 1);

This expression can be used within a sync function; however, to be run in the VM, it currently requires
the async. transformation. Unfortunately, we don't have an API for transformations to be run incrementally yet. In the short term, we'll have to lock out expressions containing any asynchronous code from the VM's debugger.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions