Skip to content

Commit

Permalink
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1518,6 +1518,11 @@ public EachWithIndexNode(EachWithIndexNode prev) {
super(prev);
}

@Specialization(guards = "isNull")
public RubyArray eachWithEmpty(VirtualFrame frame, RubyArray array, RubyProc block) {
return array;
}

@Specialization(guards = "isObject")
public Object eachWithIndexObject(VirtualFrame frame, RubyArray array, RubyProc block) {
final Object[] store = (Object[]) array.getStore();
1 change: 0 additions & 1 deletion spec/truffle/truffle.mspec
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@ class MSpecScript
"spec/ruby/core/continuation",
"spec/ruby/core/dir",
"spec/ruby/core/encoding",
"spec/ruby/core/encoding/converter",
"spec/ruby/core/exception",
"spec/ruby/core/false",
"spec/ruby/core/fiber",

0 comments on commit 01d560c

Please sign in to comment.