Index: tools/dom/scripts/systemhtml.py |
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py |
index a9cc629cd75c18011d9c18c580a2ce76560201bc..f2604409691b2a5ba8ffbbe71c2bc636cae2e450 100644 |
--- a/tools/dom/scripts/systemhtml.py |
+++ b/tools/dom/scripts/systemhtml.py |
@@ -589,7 +589,8 @@ class HtmlDartInterfaceGenerator(object): |
class_name = self._interface_type_info.implementation_name() |
js_interop_equivalence_op = \ |
- ' bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);\n' |
+ ' bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);\n' \ |
+ + ' int get hashCode => unwrap_jso(this).hashCode;\n' |
# ClientRect overrides the equivalence operator. |
if interface_name == 'ClientRect' or interface_name == 'DomRectReadOnly': |
js_interop_equivalence_op = '' |