Skip to content

Commit a2ea597

Browse files
committed
heuristic also works for old versions
1 parent df03149 commit a2ea597

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,8 @@ def jruby_timeout(sec)
191191
end
192192

193193
def exec_with_allocation_control(value, memory_limit, time_limit, exec_method, overflow_message_type)
194-
return value.send exec_method if RUBY_VERSION < '2.0'
195-
196194
return jruby_timeout(time_limit/1e3) {value.send exec_method} if defined?(JRUBY_VERSION)
195+
return value.send exec_method if RUBY_VERSION < '2.0'
197196

198197
curr_thread = Thread.current
199198

0 commit comments

Comments
 (0)