Skip to content

Conversation

@Raoul1996
Copy link

@Raoul1996 Raoul1996 commented Oct 15, 2020

In Node v14.06, official vm module add run-after-evaluate microtask mode (By Anna Henningsen, PR)

This allows timeouts to apply to e.g. Promises and async functions from code running inside of vm.Contexts, by giving the Context its own microtasks queue.

@Raoul1996
Copy link
Author

@Raoul1996
Copy link
Author

@patriksimek

@Raoul1996
Copy link
Author

@XmiliaH

@rodrigozr
Copy link

Highly interested on this. The addition of microtaskMode in NodeJS v14 solved a major issue with escaping the VM timeout

@Raoul1996 Raoul1996 closed this Oct 21, 2020
@Raoul1996 Raoul1996 reopened this Oct 21, 2020
@Raoul1996 Raoul1996 closed this Nov 20, 2020
@mariusandra
Copy link

I'd be very keen to get this feature into vm2. What could I do to help? The PR here seems rather solid...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants