Skip to content

Commit

Permalink
allow puts without argument
Browse files Browse the repository at this point in the history
pointed out at #1123
  • Loading branch information
ko1 committed Dec 17, 2024
1 parent 3685859 commit 87d607d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/debug/server_cdp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def sock skip: false
yield $stderr
end

def puts result=''
def puts result = ""
# STDERR.puts "puts: #{result}"
# send_event 'output', category: 'stderr', output: "PUTS!!: " + result.to_s
end
Expand Down
2 changes: 1 addition & 1 deletion lib/debug/server_dap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def respond req, res
send_response(req, **res)
end

def puts result
def puts result = ""
# STDERR.puts "puts: #{result}"
send_event 'output', category: 'console', output: "#{result&.chomp}\n"
end
Expand Down

0 comments on commit 87d607d

Please sign in to comment.