Skip to content

Commit

Permalink
[Truffle] Fix transcoding convert specs.
Browse files Browse the repository at this point in the history
  • 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.
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion spec/truffle/truffle.mspec
Expand Up @@ -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",
Expand Down

0 comments on commit 01d560c

Please sign in to comment.