diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-26 08:38:35 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-26 08:38:35 +0000 |
commit | 571e48b74422f5caa8ff6d91faf7e1a6bf4d2dc1 (patch) | |
tree | 7ef5c6a23b743dcf889875869fdffab9c5d9cda3 /lib | |
parent | f6631c3096f30328178a762c6ee0b26136ef42b4 (diff) | |
download | ruby-571e48b74422f5caa8ff6d91faf7e1a6bf4d2dc1.tar.gz |
proc.c (bind_location): Add Binding#source_location
Fixes #14230
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/workspace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 9ce84b60fa..5216520f32 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -108,7 +108,7 @@ EOF end def code_around_binding - file, pos = @binding.eval('[__FILE__, __LINE__]') + file, pos = @binding.source_location unless defined?(::SCRIPT_LINES__[file]) && lines = ::SCRIPT_LINES__[file] begin |