MCPcopy
hub / github.com/webpack/webpack / clone

Function clone

test/FileSystemInfo.unittest.js:213–216  ·  view source on GitHub ↗
(/** @type {Record<string, unknown>} */ object)

Source from the content-addressed store, hash-verified

211 };
212
213 const clone = (/** @type {Record<string, unknown>} */ object) => {
214 const serialized = buffersSerializer.serialize(object, {});
215 return buffersSerializer.deserialize(serialized, {});
216 };
217
218 const expectSnapshotsState = (
219 /** @type {IFs} */ fs,

Callers 2

expectSnapshotStateFunction · 0.85

Calls 2

serializeMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected