voodootikigod/node-serialport — pull request #187 by zuzkins (2013-07-18 14:20:55+00:00)
Title: FIX: Some windows 7 displays error when listing com ports

On some windows machine alerts are shown, when something goes bad when
trying to list com ports. dhToggleExceptions(FALSE) turns those off.
But then, there is sometimes huge number of serial ports reported, which do not have their
name set. We check for the name existence and proceed only when it is
available. For us it fixes
https://github.com/voodootikigod/node-serialport/issues/169
reliably on multiple machines.

Disclaimer: I do not know what goes bad when trying to list COM ports using the com object calls, but this is what fixed it for us all broken machines (so far)