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

bson EJSON uses instanceof checks when it shouldn’t

    • Not Needed

      This fails with EJSON but works with plain bson.serialize/deserialize:

      > require('bson').EJSON.serialize({re: /abc/})
      { re: { '$regularExpression': { pattern: 'abc', options: '' } } }
      > require('bson').EJSON.serialize({re: vm.runInNewContext('/abc/')})
      { re: {} }
      

      This is a shell GA blocker.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: