diff options
author | Sebastian C <sebsebmc@gmail.com> | 2025-04-16 16:00:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-16 21:00:52 +0000 |
commit | a1b9949f7563ae6ee30aedc0a3d0c86bb05d02fd (patch) | |
tree | 9d236e915635e48d98f29ce11632e24d3127a8e5 /components/script_bindings/constructor.rs | |
parent | f2ee40e40bafe5c560f53dcc7231b58e2a7c9bb3 (diff) | |
download | servo-a1b9949f7563ae6ee30aedc0a3d0c86bb05d02fd.tar.gz servo-a1b9949f7563ae6ee30aedc0a3d0c86bb05d02fd.zip |
Support static and instance members having the same name in IDLs (#36523)
This is needed to implement features like `Response.json` which is a
static helper added to the fetch spec which overlaps with the `json`
instance method `Response` has from `Body`.
Partly based these changes on what Firefox does for this same issue.
(https://searchfox.org/mozilla-central/source/dom/bindings/Codegen.py
and
https://searchfox.org/mozilla-central/source/dom/bindings/Configuration.py
specifically keying `binaryNameFor` on name and `isStatic`).
Testing: I locally updated the Response.webidl to contain the new static
`json` and it compiles.
Signed-off-by: Sebastian C <sebsebmc@gmail.com>
Diffstat (limited to 'components/script_bindings/constructor.rs')
0 files changed, 0 insertions, 0 deletions