bbde18f120
This replaces the seen set with a newly instantiated map of refs per value in the array. This corrects the behavior that the refs map passed into isSerializable contains only values along the path to the current value: previously, because the refs map was shared among all values in the array, this would trigger on instances such as: ```js const x = []; isSerializableProps('/', 'test', { arr: [x, [x]] }); ``` ... where the reference is shared but there is no cycle formed, as the presence of elements is disjoint. Fixes #18228. |
||
---|---|---|
.. | ||
typescript | ||
coalesced-function.ts | ||
constants.ts | ||
file-exists.ts | ||
find-config.ts | ||
find-pages-dir.ts | ||
get-package-version.ts | ||
is-serializable-props.ts | ||
load-custom-routes.ts | ||
oxford-comma-list.ts | ||
pretty-bytes.ts | ||
recursive-copy.ts | ||
recursive-delete.ts | ||
recursive-readdir.ts | ||
resolve-request.ts | ||
verifyTypeScriptSetup.ts |