Skip to content

Commit

Permalink
hashes with uncalculatable keys/values fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ViugiNick committed Aug 3, 2017
1 parent 82e5440 commit cbdb160
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/ruby-debug-ide/xml_printer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

module Debugger

module OverflowMessageType
NIL_MESSAGE = lambda {|e| nil}
EXEPTION_MESSAGE = lambda {|e| e.message}
SPECIAL_SYMBOL_MESSAGE = lambda {|e| '<?>'}
end

class MemoryLimitError < StandardError
attr_reader :message
attr_reader :backtrace
Expand Down Expand Up @@ -159,7 +165,10 @@ def print_string(string)
end
end

def exec_with_allocation_control(value, memory_limit, time_limit, exec_method, return_message_if_overflow)
def exec_with_allocation_control(value, memory_limit, time_limit, exec_method, overflow_massage_type)
if (defined?(JRUBY_VERSION) || ENV['DEBUGGER_MEMORY_LIMIT'].to_i <= 0)
return value.send exec_method
end
curr_thread = Thread.current
result = nil
inspect_thread = DebugThread.start {
Expand Down

0 comments on commit cbdb160

Please sign in to comment.