- 
    Type:
Bug
 - 
    Resolution: Fixed
 - 
    Priority:
Critical - P2
 - 
    Affects Version/s: bson-4.3.0
 
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.
- related to
 - 
                    
MONGOSH-670 EJSON output for explain plan
-         
 - Closed
 
 -         
 - 
                    
NODE-3195 Improve ArrayBuffer brand check in ensureBuffer
-         
 - Closed
 
 -         
 
- links to