Re: [whatwg/webidl] Normative: Add DOMException cause (PR #1179)

@legendecas commented on this pull request.



>  constructor steps are:
 
-1. Set [=this=]'s [=DOMException/name=] to |name|.
-1. Set [=this=]'s [=DOMException/message=] to |message|.
+1.  Set [=this=]'s [=DOMException/message=] to |message|.
+1.  If |options| is a string, then set [=this=]'s [=DOMException/name=] to |options|.
+1.  Otherwise,
+    1.  Set [=this=]'s [=DOMException/name=] to |options|["{{DOMExceptionOptions/name}}"].
+    1.  Perform [=?=] <a abstract-op>InstallErrorCause</a>([=this=], |options|).

Thank you for the suggestion!

AFAICT, `O` is not defined in this context. Should we perform abstract-op CreateNonEnumerableDataPropertyOrThrow on `[=this=]` instead? I'm not sure if `[=this=]` here refers to the WebIDL type or the JavaScript `this` 😅

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1179#discussion_r962451282

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1179/review/1095813106@github.com>

Received on Monday, 5 September 2022 03:38:24 UTC