Skip to content

Commit

Permalink
fix(core): Modify safeStringify to allow multiple null values (#4853)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvidas committed Jul 20, 2021
1 parent 6a7c4e3 commit 854539b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/native-bridge.ts
Expand Up @@ -200,7 +200,8 @@ const initBridge = (w: any): void => {
const seen = new Set();
return JSON.stringify(value, (_k, v) => {
if (seen.has(v)) {
return '...';
if (v === null) return null;
else return '...';
}
if (typeof v === 'object') {
seen.add(v);
Expand Down

0 comments on commit 854539b

Please sign in to comment.