Skip to content

Commit 949b82f

Browse files
committed
Stop assuming Array#each is written in C
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.
1 parent ab937ac commit 949b82f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/console/backtrace_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def program
2222
14| end
2323
15| end
2424
16|
25-
17| [1, 2, 3].each do
25+
17| [1, 2, 3].reverse_each do
2626
18| Foo.new.first_call
2727
19| end
2828
RUBY
@@ -33,7 +33,7 @@ def test_backtrace_prints_c_method_frame
3333
type 'b 18'
3434
type 'c'
3535
type 'bt'
36-
assert_line_text(/\[C\] Array#each/)
36+
assert_line_text(/\[C\] Array#reverse_each/)
3737
type 'kill!'
3838
end
3939
end

0 commit comments

Comments
 (0)