We should have a way to detect nameless special operations in IDLMethod

NEW
Unassigned

Status

()

Core
DOM
6 years ago
6 years ago

People

(Reporter: peterv, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 years ago
Right now we detect them by checking |method.identifier.name[:2] == "__"|, which seem rather hacky.
This seems to have been fixed, but the FIXME comment is still in the code.

dom/bindings/Codegen.py:
        # FIXME https://bugzilla.mozilla.org/show_bug.cgi?id=772822
        #       We should be able to check for special operations without an
        #       identifier. For now we check if the name starts with __
(Reporter)

Comment 2

6 years ago
This wasn't fixed, but the comment is not next to the check anymore :-/. isIdentifierLess() does |return self.identifier.name[:2] == "__"|/
You need to log in before you can comment on or make changes to this bug.