GoogleChrome/webrtc — pull request #29 by fippo (2014-05-13 08:35:01+00:00)
Title: error.code is not defined, should be error.name

See http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-MediaStreamError

The error generated by chrome has .name set already -- firefox still passes a string instead of a MediaStreamError, but that doesnt seem to hurt much.