Skip to content

Commit

Permalink
fix PlainBackend for irb v1.13.0
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro SATOH <[email protected]>
  • Loading branch information
zalt50 committed May 12, 2024
1 parent 0e31c0e commit f341266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iruby/backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def eval_binding
end

def eval(code, store_history)
@irb.context.evaluate(code, 0)
@irb.context.evaluate(@irb.build_statement(code), 0)
@irb.context.last_value unless IRuby.silent_assignment && assignment_expression?(code)
end

Expand Down

0 comments on commit f341266

Please sign in to comment.