Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-34364

add Status support to invariant()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • Repl 2018-04-23, Repl 2018-05-07

      Code that require the use of invariants currently use invariant() for boolean conditions and invariantOK() for Statuses. Extending invariant() to support Status would mean one fewer assertion function for developers to remember.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: