The insertBefore operation doesn't throw on the real DOM, so it shouldn't here as well.
Basically, if the node is the same, for whatever reason, the Dommy throws an error, which shouldn't, but it also shouldn't remove the node from its index, as no change happens whatsoever, and it ends up in the broken path.
This might also solve the snabdom failing with shuffled nodes, but I haven't tested.
The
insertBefore
operation doesn't throw on the real DOM, so it shouldn't here as well.Basically, if the node is the same, for whatever reason, the Dommy throws an error, which shouldn't, but it also shouldn't remove the node from its index, as no change happens whatsoever, and it ends up in the broken path.
This might also solve the snabdom failing with shuffled nodes, but I haven't tested.