module Bootsnap::CompileCache::JSON::Patch

def load_file(path, *args)

def load_file(path, *args)
  return super if args.size > 1
  if (kwargs = args.first)
    return super unless kwargs.is_a?(Hash)
    return super unless (kwargs.keys - ::Bootsnap::CompileCache::JSON.supported_options).empty?
  end
  begin
    ::Bootsnap::CompileCache::Native.fetch(
      Bootsnap::CompileCache::JSON.cache_dir,
      File.realpath(path),
      ::Bootsnap::CompileCache::JSON,
      kwargs,
    )
  rescue Errno::EACCES
    ::Bootsnap::CompileCache.permission_error(path)
  end
end