# File lib/pry/pry_instance.rb, line 222
  def repl(target=TOPLEVEL_BINDING)
    target = Pry.binding_for(target)

    repl_prologue(target)

    break_data = nil
    exception = catch(:raise_up) do
      break_data = catch(:breakout) do
        loop do
          rep(binding_stack.last)
        end
      end
      exception = false
    end

    raise exception if exception

    break_data
  ensure
    repl_epilogue(target)
  end