runtime_library/module.js
// Try the INFERRED_DIRECTORY_FILES to see if the path refers to a directory
Try the INFERRED_DIRECTORY_FILES to see if the path refers to a directory
Try the INFERRED_DIRECTORY_FILES to see if the path refers to a directory
function tryDirectory(path) {
    for (var f = 0; f < INFERRED_DIRECTORY_FILES.length; f++) {
      try {
        var file_path = cleanPath(path + '/' + INFERRED_DIRECTORY_FILES[f]);
        var file_string = __readFileSync(file_path);
        if (typeof file_string === 'string') {
          return file_path;
        }
      } catch(error) {
        continue;
      }
    }
    return null;
  }
function tryDirectory ( path ) { for ( var f = 0 ; f < INFERRED_DIRECTORY_FILES . length ; f ++ ) { try { var file_path = cleanPath ( path + '/' + INFERRED_DIRECTORY_FILES [ f ] ) ; var file_string = __readFileSync ( file_path ) ; if ( typeof file_string === 'string' ) { return file_path ; } } catch ( error ) { continue ; } } return null ; }
Try the INFERRED_DIRECTORY_FILES to see if the path refers to a directory
Try the INFERRED_DIRECTORY_FILES to see if the path refers to a directory