We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent aab1c34 commit bafc36aCopy full SHA for bafc36a
opal/corelib/enumerable.rb
@@ -318,7 +318,7 @@ def each_slice(n, &block)
318
slice.push(param);
319
320
if (slice.length === n) {
321
- if (block(slice) === $breaker) {
+ if ($opal.$yield1(block, slice) === $breaker) {
322
result = $breaker.$v;
323
return $breaker;
324
}
@@ -335,7 +335,7 @@ def each_slice(n, &block)
335
336
// our "last" group, if smaller than n then won't have been yielded
337
if (slice.length > 0) {
338
339
return $breaker.$v;
340
341
0 commit comments