SERVER-137320ClosedFixed
Add the ExpressionContext change-stream error-event slots
h2. Deliverable Add per-cursor, per-node change-stream state to {{{}ExpressionContext{}}}. All state is gated by {{changeStreamShowsErrorsAsEvents()}} (which reads {{{}spec.showErrorsAsEvents{}}}); when the flag is off, the state operations are no-ops. * {{activeChangeStreamEvent}} — {{optional<Document>}} * {{activeChangeStreamErrorSource}} — {{optional<ChangeStreamErrorSource>}} * {{pendingChangeStreamResumeGap}} — {{optional<Document>}} * {{pendingChangeStreamRouterErrorEvent