I have a userscript that adds an extra link next to each section. To style this link the same way as the edit-section links, it sets the class mw-editsection for the surrounding span.
When my script happens to be loaded before VE, the setupSectionLinks tries to work on the fake links and an error is thrown ('Bad constructor arguments' from mediawiki.Uri).
While this certainly is an issue with my script, I hope that something is changed in MediaWiki to counter this, as I don't see a good workaround. Either VE should ignore links which don't look like real edit links, work only on the first link for each section, or a new class should be introduced with the same styles as mw-editsection to discourage abuse like my script.