Debian Codegraph @

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

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