Issue Type: Bug Bug
Affects Versions: JRuby 1.7.1
Assignee: Unassigned
Components: Core Classes/Modules
Created: 13/Dec/12 5:13 PM
Description:

Given the following file fiber_test.rb:

fiber = Fiber.new do
  Fiber.yield 1
  2
end

puts fiber.resume
puts fiber.resume

Running it with --debug fails:

$ ruby --debug fiber_test.rb 
NoMethodError: undefined method `yield' for Fiber:Class
  (root) at fiber_test.rb:2

whereas running without --debug succeeds:

$ ruby fiber_test.rb 
1
2
Environment: jruby-head commit d80b18fbaec0df59276f5ec2b7ce3de92cce63ce

jruby 1.7.2.dev (1.9.3p327) 2012-12-13 fffffff on Java HotSpot(TM) 64-Bit Server VM 1.7.0_07-b10 [darwin-x86_64]

Mac OS X 10.7.5
Project: JRuby
Priority: Major Major
Reporter: Tim Olsen
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to