-
-
Notifications
You must be signed in to change notification settings - Fork 943
Closed
Milestone
Description
This causes array#cycle spec to fail
def yield_me
n = 0
while true
[0, 1, 2].each do |n|
puts "hello"
yield(n)
puts "shouldn't print this"
end
end
end
yield_me { |n| break if n == 0 }Expected output (ruby 2.2, jruby )
$ ruby looping.rb
hello
Actual output
$ ~/Documents/jruby-mine/bin/jruby -X+T -Xtruffle.printRuntime=true looping.rb
jruby: using Default Truffle Runtime
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
hello
... forever
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels