Skip to content

Commit c6b3e85

Browse files
committed
chore(browser): document snapshot JSON string invariant
1 parent a71ec2b commit c6b3e85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎extensions/browser/src/browser/pw-role-snapshot.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function parseRoleSnapshotLine(line: string) {
7474
return null;
7575
}
7676
try {
77-
name = JSON.parse(encoded) as string;
77+
name = JSON.parse(encoded) as string; // SAFETY: encoded matches one complete JSON string literal.
7878
} catch {
7979
return null;
8080
}

0 commit comments

Comments
 (0)