📜  node_modules mongodb lib json.js:10 catch { } eslint-disable-line - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:01.203000             🧑  作者: Mango

代码示例1
try {
  // Ensure you always wrap an optional require in the try block NODE-3199
  BSON = require('bson-ext');
} catch {} // eslint-disable-line

//it should be 
try {
  // Ensure you always wrap an optional require in the try block NODE-3199
  BSON = require('bson-ext');
}catch(err){} // eslint-disable-line