async function(data) {
      let t = this;
      let result = {};
      return new Promise((resolve, reject) => {
        async.forEach(data.libraries,
          function(path, cb) {
            t.__addLibrary(path, result, cb);
          },
          function(err) {
            if (err) {
              reject(err);
            } else {
              resolve(result);
            }
          });
      });
    }
async function(data) {
      let t = this;
      let result = {};
      return new Promise((resolve, reject) => {
        async.forEach(data.libraries,
          function(path, cb) {
            t.__addLibrary(path, result, cb);
          },
          function(err) {
            if (err) {
              reject(err);
            } else {
              resolve(result);
            }
          });
      });
    }
async function ( data ) { let t = this ; let result = { } ; return new Promise ( ( resolve , reject ) => { async . forEach ( data . libraries , function ( path , cb ) { t . __addLibrary ( path , result , cb ) ; } , function ( err ) { if ( err ) { reject ( err ) ; } else { resolve ( result ) ; } } ) ; } ) ; }
Scan all libraries and add the namespace to globals
Scan all libraries and add the namespace to globals