TracePoint#enable(target_line:) is supported. [Feature #15289]

* vm_trace.c: `TracePoint#enable(target_line:)` is supported.
  This option enables a hook only at specified target_line.
  target_line should be combination with target and :line event.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2018-11-26 20:16:14 +00:00
parent 6e33c16ffd
commit 72e60a0437
6 changed files with 77 additions and 20 deletions

View file

@ -133,8 +133,8 @@ class IO
end
class TracePoint
def enable target: nil, &blk
self.__enable target, &blk
def enable target: nil, target_line: nil, &blk
self.__enable target, target_line, &blk
end
end