Skip to content

Commit 4b2c816

Browse files
committed
fix calls after refactoring
1 parent c9522b4 commit 4b2c816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ def exec_with_allocation_control(value, memory_limit, time_limit, exec_method, o
181181
curr_time = Time.now.to_f
182182

183183
if (curr_time - start_time) * 1e3 > time_limit
184-
curr_thread.raise TimeLimitError.new("Timeout: evaluation of #{exec_method} took longer than #{time_limit}ms.", caller.to_a, trace_point)
184+
curr_thread.raise TimeLimitError.new("Timeout: evaluation of #{exec_method} took longer than #{time_limit}ms.", trace_point, caller.to_a)
185185
end
186186

187187
if check_memory_limit
188188
curr_alloc_size = ObjectSpace.memsize_of_all
189189
start_alloc_size = curr_alloc_size if curr_alloc_size < start_alloc_size
190190

191191
if curr_alloc_size - start_alloc_size > 1e6 * memory_limit
192-
curr_thread.raise MemoryLimitError.new("Out of memory: evaluation of #{exec_method} took more than #{memory_limit}mb.", caller.to_a, trace_point)
192+
curr_thread.raise MemoryLimitError.new("Out of memory: evaluation of #{exec_method} took more than #{memory_limit}mb.", trace_point, caller.to_a)
193193
end
194194
end
195195
end

0 commit comments

Comments
 (0)