lib/byebug/helpers/eval.rb in byebug-8.0.1 vs lib/byebug/helpers/eval.rb in byebug-8.1.0
- old
+ new
@@ -47,10 +47,10 @@
end
private
def safe_eval(str, binding)
- binding.eval(str)
+ binding.eval(str, '(byebug)', 1)
rescue StandardError, ScriptError => e
yield(e)
end
def msg(e)