You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this is as easy as for async I think allowing this would be great. There's an emerging pattern of APIs taking constructors and not being able to use the obvious name would be rather unfortunate and a likely continuing source of confusion.
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.
See #700, whatwg/html#4869.
CC @annevk
The text was updated successfully, but these errors were encountered: