Join GitHub today
Fix tracer.rb and get it running in CI #5850
This relates to #5847 and #5795. The diffs from CRuby in our tracer.rb were not quite equivalent since the original would also accespt a Proc passed as an argument. I've changed the logic here to use that argument or fall back on a passed block. There's also changes to how we invoke event hooks. The first just unifies the JIT and interpreter to call the same logic. The the second mimics CRuby when there's a frame klass and it is either an included module or a singleton. These latter changes fix the remaining failures in CRuby's test_tracer.rb.
enebo merged commit
Aug 27, 2019
5 checks passed
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.