Skip to content
Permalink
Browse files
[Truffle] Fix transcoding convert specs.
  • Loading branch information
chrisseaton committed Nov 5, 2014
1 parent 3f676c8 commit 01d560c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
@@ -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();
@@ -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.