Skip to content

Give more control over jsExecutePendingJob / _executePendingJob #31

@Matthiee

Description

@Matthiee

We are using Zone's to control some aspects of how the eval code is executed.

If the eval is executed in CustomZone, all the JS code that is behind an async/await will be run in the RootZone where the QuickJS.dispatch() is executed. This is incorrect, we would expect all the code in the eval to be run in the CustomZone.

We can't change this behaviour as there is no way to manually execute pending jobs.

Making the _executePendingJob public would be sufficient for us.


Closing the QuickJS and running the Dispatch again inside the correct zone is too expensive for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions