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
The identifier of a dictionary member must not be the same as that of another dictionary member defined on the dictionary or on that dictionary’s inherited dictionaries.
I tried if webidl2.js would catch such errors but it seems like not:
const{ parse, validate }=require("webidl2");constast=parse(`dictionary A { any m; }; dictionary B : A { object m; };`);constvalidations=validate(ast);// returns []
The text was updated successfully, but these errors were encountered:
It actually looks like duplicating the member name on a single dictionary is also not validated for.
foolip
changed the title
Validate dictionary members do not shadow members of any inherited dictionary
Validate unique dictionary members (including inheritance)
Apr 26, 2021
https://heycam.github.io/webidl/#idl-dictionaries says:
I tried if webidl2.js would catch such errors but it seems like not:
The text was updated successfully, but these errors were encountered: