Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web IDL validation errors #26

Open
autokagami opened this issue Apr 4, 2021 · 0 comments
Open

Web IDL validation errors #26

autokagami opened this issue Apr 4, 2021 · 0 comments

Comments

@autokagami
Copy link
Contributor

autokagami commented Apr 4, 2021

🤖 This is an automatic issue report for Web IDL validation error. 🤖

The bot found validation errors but couldn't fix them automatically, since the IDL texts include HTML tags. Please check the following messages and fix them.

  • Validation error at line 4 in test-spec,0:
            void doTheFoo();
            ^
    

    Error: void is now replaced by undefined. Refer to the relevant GitHub issue for more information.

  • Validation error at line 3 in test-spec,1:
            void doTheFoo();
            ^
    

    Error: void is now replaced by undefined. Refer to the relevant GitHub issue for more information.

  • Validation error at line 6 in test-spec,1, inside `interface mixin MyMixin`:
            void doTheFoo(DOMString foo)
                 ^
    

    Error: The operation "doTheFoo" has already been defined for the base interface "BaseInterface" either in itself or in a mixin

  • Validation error at line 6 in test-spec,1:
            void doTheFoo(DOMString foo
            ^
    

    Error: void is now replaced by undefined. Refer to the relevant GitHub issue for more information.

  • Validation error at line 1 in test-spec,2, inside `interface IHaveConstructor`:
          [Exposed=Window, Constructor] // cause merge conflict 7
                           ^
    

    Error: Constructors should now be represented as a constructor() operation on the interface instead of [Constructor] extended attribute. Refer to the WebIDL spec section on constructor operations for more information.

  • Validation error at line 4 in test-spec,2:
            void doTheFoo();
            ^
    

    Error: void is now replaced by undefined. Refer to the relevant GitHub issue for more information.

  • Validation error at line 1 in test-spec,3, inside `interface ImplicitlyExposed`:
          interface ImplicitlyExposed {
                    ^
    

    Error: Interfaces must have [Exposed] extended attribute. To fix, add, for example, [Exposed=Window]. Please also consider carefully if your interface should also be exposed in a Worker scope. Refer to the WebIDL spec section on Exposed for more information.

  • Validation error at line 3 in test-spec,3:
            void doTheFoo();
            ^
    

    Error: void is now replaced by undefined. Refer to the relevant GitHub issue for more information.

  • Validation error at line 4 in test-spec,4, inside `interface IUseTheDictionary`:
          interface IUseTheDictionary {
                    ^
    

    Error: Interfaces must have [Exposed] extended attribute. To fix, add, for example, [Exposed=Window]. Please also consider carefully if your interface should also be exposed in a Worker scope. Refer to the WebIDL spec section on Exposed for more information.

  • Validation error at line 5 in test-spec,4:
            void doTheFoo(MyDictionary dict
            ^
    

    Error: void is now replaced by undefined. Refer to the relevant GitHub issue for more information.

  • Validation error at line 5 in test-spec,4, inside `interface IUseTheDictionary -> operation doTheFoo -> argument dict`:
            void doTheFoo(MyDictionary dict);
                                       ^
    

    Error: Dictionary argument must be optional if it has no required fields

  • Validation error at line 4 in test-spec,5:
            void doTheFoo(optional MyUnion
            ^
    

    Error: void is now replaced by undefined. Refer to the relevant GitHub issue for more information.

  • Validation error at line 4 in test-spec,5:
            void doTheFoo(optional MyUnion? dict);
                                   ^
    

    Error: Nullable union cannot include a dictionary type.

  • Validation error at line 4 in test-spec,5, inside `interface IAlsoUseTheDictionary -> operation doTheFoo -> argument dict`:
     doTheFoo(optional MyUnion? dict);
                                ^
    

    Error: Dictionary arguments cannot be nullable.

  • Validation error at line 6 in test-spec,0, inside `dictionary Duplicated`:
          dictionary Duplicated {};
                     ^
    

    Error: The name "Duplicated" of type "interface" was already seen

Please file an issue at https://github.com/saschanaz/webidl-updater/issues/new if you think this is invalid or should be enhanced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant