Upgrade `toObject` method to use [`Object.fromEntries`](https://v8.dev/blog/v8-release-73) Blocked by pending release of [Node.js PR#25852](https://github.com/nodejs/node/pull/25852)