Skip to content

invoke function in dart2wasm's JS runtime should return a promise #52561

@eyebrowsoffire

Description

@eyebrowsoffire

dart2wasm's generated JS runtime has an invoke function for the main entry point of the program. However, this basically returns immediately, even if there is more asynchronous work to be done. We should have this function return a promise, which should attempt to match the behavior of the VM command line. That is to say, the promise should be resolved when there are no more asynchronous or pending tasks to run, and it should reject if there is an uncaught exception during execution (synchronous or asynchronous).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart2wasmIssues for the dart2wasm compiler.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions