Skip to content

yield doesn't work inside a block #379

@meh

Description

@meh

Ruby:

>> def lol(&block); [1].each {|v| yield v }; end; lol { |v| puts v.inspect }
1
=> [1]

Opal:

> bundle exec opal -e 'def lol(&block); [1].each {|v| yield v }; end; lol { |v| puts v.inspect }'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions