fix(javascript): isolate source analysis and retain bounded partial evidence (#1651)
* refactor(javascript): validate transferable file projections * test(javascript): consume decoded module and static facts * fix(javascript): isolate source analysis and retain bounded partial evidence * test(javascript): verify cleanup retention and repeated source paths
This commit is contained in:
@@ -78,6 +78,8 @@ export function* jsonValueValidationSteps(
|
||||
}
|
||||
|
||||
const preserveJsonValue = (value: JsonValue): JsonValue => {
|
||||
const immutableCandidate: unknown = value;
|
||||
if (isImmutableJsonSnapshot(immutableCandidate)) return value;
|
||||
if (Array.isArray(value)) return value.map(preserveJsonValue);
|
||||
if (value !== null && typeof value === "object")
|
||||
return Object.fromEntries<JsonValue>(
|
||||
|
||||
Reference in New Issue
Block a user