This commit is contained in:
Timothee Cour 2019-09-21 14:18:05 -07:00 • committed by Andreas Rumpf
commit e6877a5198

View file

@ -254,7 +254,10 @@ proc eq(a, b: VNode; recursive: bool): EqResult =
for i in 0..<a.len: for i in 0..<a.len:
if eq(a[i], b[i], recursive) == different: return different if eq(a[i], b[i], recursive) == different: return different
elif a.kind == VNodeKind.dthunk: elif a.kind == VNodeKind.dthunk:
if a.dom == b.dom:
return identical return identical
else: # fix #119
return different
elif a.kind == VNodeKind.verbatim: elif a.kind == VNodeKind.verbatim:
if a.text != b.text: if a.text != b.text:
return different return different