Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1077,6 +1077,11 @@ public Object deleteObject(VirtualFrame frame, RubyArray array, Object value) {
return found;
}

@Specialization(guards = "isNullArray")
public Object deleteNull(VirtualFrame frame, RubyArray array, Object value) {
return nil();
}

}

@CoreMethod(names = "delete_at", required = 1, raiseIfFrozenSelf = true)

0 comments on commit b69d00f

Please sign in to comment.