Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1463,7 +1463,7 @@ public boolean includeObject(VirtualFrame frame, DynamicObject array, Object val

}

@CoreMethod(names = "initialize", needsBlock = true, optional = 2, raiseIfFrozenSelf = true)
@CoreMethod(names = "initialize", needsBlock = true, optional = 2, raiseIfFrozenSelf = true, lowerFixnumParameters = 0)
@ImportStatic(ArrayGuards.class)
public abstract static class InitializeNode extends YieldingCoreMethodNode {

@@ -1514,8 +1514,7 @@ public DynamicObject initialize(VirtualFrame frame, DynamicObject array, Object
}

}



@Specialization
public DynamicObject initialize(DynamicObject array, NotProvided size, NotProvided defaultValue, NotProvided block) {
return initialize(array, 0, nil(), block);

0 comments on commit 898757e

Please sign in to comment.