Re: [heycam/webidl] Should "constructor" be allowed as an argument name? (#779)

Yes, we should do it.  In particular, I think we should add "constructor" to ArgumentNameKeyword, and maybe allow it in dictionary member names (will need a new production).  Not sure about AttributeNameKeyword; it's a little weird to add an attribute named "constructor", given that JS already has semantics for that.

I don't know why https://searchfox.org/mozilla-central/rev/325c1a707819602feff736f129cb36055ba6d94f/dom/webidl/CustomElementRegistry.webidl#8 was named "functionConstructor" instead of "constructor".  :(  It's that way in the first patches in <https://bugzilla.mozilla.org/show_bug.cgi?id=1275833> which already don't match the spec IDL...



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/779#issuecomment-525743606

Received on Wednesday, 28 August 2019 13:24:49 UTC