This version of Unity is unsupported.

GenericMenu.allowDuplicateNames

public bool allowDuplicateNames;

Description

Allow the menu to have multiple items with the same name.