runtime_library/module.js
// Try loading all of the possible MODULE_MANIFEST_FILES looking for a 'main' to add to the path
Try loading all of the possible MODULE_MANIFEST_FILES looking for a 'main' to add to the path
Try loading all of the possible MODULE_MANIFEST_FILES looking for a ' main ' to add to the path
function tryModule(path) {
    for (var m = 0; m < MODULE_MANIFEST_FILES.length; m++) {
      try {
        var manifest_string = __readFileSync(cleanPath(path + '/' + MODULE_MANIFEST_FILES[m]));
        if (typeof manifest_string === 'string') {
          var manifest = JSON.parse(manifest_string);
          var main_path = cleanPath(path + '/' + manifest.main);
          if (typeof __readFileSync(main_path) === 'string') {
            return main_path;            
          }
        }
      } catch(error) {
        continue;
      }
    }
    return null;
  }
function tryModule ( path ) { for ( var m = 0 ; m < MODULE_MANIFEST_FILES . length ; m ++ ) { try { var manifest_string = __readFileSync ( cleanPath ( path + '/' + MODULE_MANIFEST_FILES [ m ] ) ) ; if ( typeof manifest_string === 'string' ) { var manifest = JSON . parse ( manifest_string ) ; var main_path = cleanPath ( path + '/' + manifest . main ) ; if ( typeof __readFileSync ( main_path ) === 'string' ) { return main_path ; } } } catch ( error ) { continue ; } } return null ; }
Try loading all of the possible MODULE_MANIFEST_FILES looking for a 'main' to add to the path
Try loading all of the possible MODULE_MANIFEST_FILES looking for a ' main ' to add to the path