W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > April 2015

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

From: Domenic Denicola via GitHub <sysbot+gh@w3.org>
Date: Thu, 16 Apr 2015 03:45:23 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-93630643-1429155920-sysbot+gh@w3.org>
 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 
 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
Received on Thursday, 16 April 2015 03:45:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 24 October 2017 05:05:42 UTC