MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / snapshotPageProps

Function snapshotPageProps

example/tests/sandbox_test.js:132–138  ·  view source on GitHub ↗
(keys)

Source from the content-addressed store, hash-verified

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)) {

Callers 1

sandbox_test.jsFile · 0.85

Calls 1

createMethod · 0.65

Tested by

no test coverage detected