Skip to content

Maybe inconsistent result for WebIDL checker regarding "stringifier" #767

@janemba

Description

@janemba

Hello,

I submit a WebIDL example for the WebIDL checker at https://w3c.github.io/webidl2.js/checker/ .

The WebIDL data is the following:

interface interface_identifier {
  stringifier;
};

And from the checker I'm getting the following result:

[
  {
    "type": "interface",
    "name": "interface_identifier",
    "inheritance": null,
    "members": [
      {
        "type": "operation",
        "name": "",
        "arguments": [],
        "extAttrs": [],
        "special": "stringifier"
      }
    ],
    "extAttrs": [],
    "partial": false
  }
]

So we have only one member but it doesn't contain the IdlType field. The Operation type describe in the README.md (from this repo), contains the IdlType.

I was wondering if the correct results should be that one instead (with IdlType set to null):

[
    {
        "type": "interface",
        "name": "interface_identifier",
        "inheritance": null,
        "members": [
            {
                "type": "operation",
                "name": "",
                "idlType": null,
                "arguments": [],
                "extAttrs": [],
                "special": "stringifier"
            }
        ],
        "extAttrs": [],
        "partial": false
    }
]

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions