Skip to content

Commit

Permalink
Fix Array#select
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Nov 6, 2013
1 parent b43acc0 commit 776e171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opal/core/array.rb
Expand Up @@ -1056,7 +1056,7 @@ def select(&block)
for (var i = 0, length = self.length, item, value; i < length; i++) {
item = self[i];
if ((value = block(item)) === $breaker) {
if ((value = $opal.$yield1(block, item)) === $breaker) {
return $breaker.$v;
}
Expand Down

0 comments on commit 776e171

Please sign in to comment.