module Bootsnap::CompileCache::YAML

def input_to_storage(contents, _)

def input_to_storage(contents, _)
  raise(Uncompilable) if contents.index("!ruby/object")
  obj = ::YAML.load(contents)
  msgpack_factory.dump(obj)
rescue NoMethodError, RangeError
  # The object included things that we can't serialize
  raise(Uncompilable)
end