Re: [mediacapture-main] MediaStreamError should not be an interface

@jan-ivar 
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-nativeerror-object-structure
 is basically what you want to do. It's templatized on _NativeError_ 
so just use `MediaStreamError` instead and add a few steps to the 
constructor specifying how to set the extra properties. (Probably 
don't add to the .prototype like .message and .name are, those seem 
like largely legacy...)

You'll probably also want something at the top of such a section 
saying something like "assume that the rules for [ECMAScript standard 
built-in 
objects](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-standard-built-in-objects)
 are in effect in this section" so that it's clear that e.g. the 
property descriptor defaults are the same as in ES, `.length` and 
`.name` are inferred the same way, etc.

-- 
GitHub Notif of comment by domenic
See 
https://github.com/w3c/mediacapture-main/issues/162#issuecomment-93630643

Received on Thursday, 16 April 2015 03:45:32 UTC