Skip to content

Commit

Permalink
Stop assuming Array#each is written in C
Browse files Browse the repository at this point in the history
Same as #1015, but for Array#each.
We're thinking of rewriting it in Ruby, and I'd like to avoid failing on
test-bundled-gems in the PR.
  • Loading branch information
k0kubun committed Jan 12, 2024
1 parent ab937ac commit 949b82f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/console/backtrace_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def program
14| end
15| end
16|
17| [1, 2, 3].each do
17| [1, 2, 3].reverse_each do
18| Foo.new.first_call
19| end
RUBY
Expand All @@ -33,7 +33,7 @@ def test_backtrace_prints_c_method_frame
type 'b 18'
type 'c'
type 'bt'
assert_line_text(/\[C\] Array#each/)
assert_line_text(/\[C\] Array#reverse_each/)
type 'kill!'
end
end
Expand Down

0 comments on commit 949b82f

Please sign in to comment.