Re: [webidl] Make the DOMException constructor accept a name (#22)

In theory, DefinePropertyOrThrow is identical to [[DefineOwnProperty]] if the object's [[DefineOwnProperty]] is the one defined by http://people.mozilla.org/~jorendorff/es6-draft.html#sec-ordinary-object-internal-methods-and-internal-slots-defineownproperty-p-desc and the object was just created (so doesn't have a property with that name).

But yes, I would think that what engines use internally is closer to DefinePropertyOrThrow, in that if it fails (e.g. due to OOM, which the spec doesn't really consider) an exception will be thrown.

---
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/22#issuecomment-93876803

Received on Friday, 17 April 2015 01:51:10 UTC