break the reference to the `nodes` array which is a local binding to array stored in the WeakMap. Other places expect this to remain the same `nodes` array that it was when it was initialized.