Skip to content

Commit

Permalink
Merge pull request #2396 from janbiedermann/exit_gracefully
Browse files Browse the repository at this point in the history
exit repl gracefully
  • Loading branch information
hmdne committed Feb 16, 2022
2 parents ac3477d + c04ad2d commit bcc27a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/repl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def eval_js(mode, code)
load_opal
raise e
rescue EOFError, Errno::EPIPE
exit $?.exitstatus
exit $?.nil? ? 0 : $?.exitstatus
end

def readline
Expand Down

0 comments on commit bcc27a2

Please sign in to comment.