Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1494

mongoErrorContextSymbol undefined in isGetMoreError() in change_stream.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Native
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In isGetMoreError(), we return !!error[mongoErrorContextSymbol].isGetMore;. This assumes that mongoErrorContextSymbol is always defined, which may not be true. We should check to make sure mongoErrorContextSymbol is defined before accessing isGetMore.

       

            Assignee:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            Reporter:
            katherine.walker@mongodb.com Katherine Walker (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: