runtime_library/module.js
// Try each of the INFERRED_FILE_EXTENSIONS to see if they are actual files
Try each of the INFERRED_FILE_EXTENSIONS to see if they are actual files
Try each of the INFERRED_FILE_EXTENSIONS to see if they are actual files
function tryFile(path) {
    for (var f = 0; f < INFERRED_FILE_EXTENSIONS.length; f++) {
      try {
        var file_path = cleanPath(path + INFERRED_FILE_EXTENSIONS[f]);
        var file_string = __readFileSync(file_path);
        if (typeof file_string === 'string') {
          return file_path;
        }
      } catch(error) {
        continue;
      }
    }
    return null;
  }
function tryFile ( path ) { for ( var f = 0 ; f < INFERRED_FILE_EXTENSIONS . length ; f ++ ) { try { var file_path = cleanPath ( path + INFERRED_FILE_EXTENSIONS [ f ] ) ; var file_string = __readFileSync ( file_path ) ; if ( typeof file_string === 'string' ) { return file_path ; } } catch ( error ) { continue ; } } return null ; }
Try each of the INFERRED_FILE_EXTENSIONS to see if they are actual files
Try each of the INFERRED_FILE_EXTENSIONS to see if they are actual files