From 9be4f22cbb9ab888a813c1d9f8e37134e1679944 Mon Sep 17 00:00:00 2001 From: Viuginov Nickolay Date: Tue, 8 Aug 2017 19:18:39 +0300 Subject: [PATCH] dont use exec_with_allocation for old ruby versions --- lib/ruby-debug-ide/xml_printer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ruby-debug-ide/xml_printer.rb b/lib/ruby-debug-ide/xml_printer.rb index aad80f6..e4a92db 100644 --- a/lib/ruby-debug-ide/xml_printer.rb +++ b/lib/ruby-debug-ide/xml_printer.rb @@ -168,6 +168,8 @@ def print_string(string) end def exec_with_allocation_control(value, memory_limit, time_limit, exec_method, overflow_message_type) + return value.send exec_method if(RUBY_VERSION < '2.0') + check_memory_limit = true if (defined?(JRUBY_VERSION) || ENV['DEBUGGER_MEMORY_LIMIT'].to_i <= 0) check_memory_limit = false