diff --git a/dom/bindings/parser/WebIDL.py b/dom/bindings/parser/WebIDL.py index 9e23046b3a24..88c88a3afd04 100644 --- a/dom/bindings/parser/WebIDL.py +++ b/dom/bindings/parser/WebIDL.py @@ -243,7 +243,7 @@ class IDLScope(IDLObject): return # ensureUnique twice with the same object is not allowed - assert object != self._dict[identifier.name] + assert id(object) != id(self._dict[identifier.name]) replacement = self.resolveIdentifierConflict(self, identifier, self._dict[identifier.name],