(keys)
| 130 | } |
| 131 | |
| 132 | function snapshotPageProps(keys) { |
| 133 | const snapshots = Object.create(null); |
| 134 | for (const key of keys) { |
| 135 | snapshots[key] = Object.getOwnPropertyDescriptor(unsafeWindow, key); |
| 136 | } |
| 137 | return snapshots; |
| 138 | } |
| 139 | |
| 140 | function restorePageProps(snapshots) { |
| 141 | for (const key of Object.keys(snapshots)) { |