PmicrotaskMode
Bun

property

vm.RunningScriptInNewContextOptions.microtaskMode

microtaskMode?: 'afterEvaluate'

If set to afterEvaluate, microtasks will be run immediately after the script has run.