Skip to content

Commit 802b46a

Browse files
viuginick1valich
authored andcommitted
dont use exec_with_allocation for old ruby versions
1 parent 25e8151 commit 802b46a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ def print_string(string)
168168
end
169169

170170
def exec_with_allocation_control(value, memory_limit, time_limit, exec_method, overflow_message_type)
171+
return value.send exec_method if(RUBY_VERSION < '2.0')
172+
171173
check_memory_limit = true
172174
if (defined?(JRUBY_VERSION) || ENV['DEBUGGER_MEMORY_LIMIT'].to_i <= 0)
173175
check_memory_limit = false

0 commit comments

Comments
 (0)