Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): avoid crash on logging circular objects #5186

Merged
merged 2 commits into from
Nov 2, 2021

Conversation

jcesarmobile
Copy link
Member

safeStringify function was added to fix #4506, but didn't do it properly as there is a follow up PR that is still unmerged. And also causes a crash on iOS apps if you try to log an object with circular references, see this issue for more details.

Since we changed the way the console overwrite works on iOS, looks like the safeStringify is not even needed, so this PR removes it. After merged, circular objects that error on JSON.stringify() will go back to printing [object Object] as they did before the safeStringify PR was merged instead of crashing the app.

closes #5178
closes #4573

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants