[ruby/irb] PTY module is platform dependent
https://github.com/ruby/irb/commit/dbb3dc72ff
This commit is contained in:
parent
9761422f47
commit
1148636e3d
@ -1,6 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "pty" unless RUBY_ENGINE == 'truffleruby'
|
||||
begin
|
||||
require "pty"
|
||||
rescue LoadError
|
||||
return
|
||||
end
|
||||
|
||||
require "tempfile"
|
||||
require "tmpdir"
|
||||
require "envutil"
|
||||
|
Loading…
x
Reference in New Issue
Block a user