@morojs/moro 1.8.11 → 1.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2113,7 +2113,9 @@ export class MoroEngineServer {
2113
2113
  // closes, in this loop iteration's check phase. One per burst is enough,
2114
2114
  // so it is armed once and re-armed only after it has fired.
2115
2115
  _armMicrotaskDrain() {
2116
- if (this._drainArmed)
2116
+ // An engine that opens a Node callback scope around every callback
2117
+ // (capabilities.callbackScope) drains the queue itself on return.
2118
+ if (this._drainArmed || this._capabilities?.callbackScope === true)
2117
2119
  return;
2118
2120
  this._drainArmed = true;
2119
2121
  setImmediate(() => {