Debian Codegraph @

packages/babel-plugin-transform-arrow-functions/test/fixtures/arrow-functions/nested/input.js

raw
1 module.exports = {
2 init: function () {
3 return new Promise((resolve, reject) => {
4 MongoClient.connect(config.mongodb, (err, db) => {
5 if (err) {
6 return reject(err);
7 }
8 this.db = db;
9 resolve(this);
10 });
11 });
12 }
13 };