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

Fall back on console.log when node-inspect-extracted fails #372

Closed
wants to merge 1 commit into from

Conversation

hildjj
Copy link
Contributor

@hildjj hildjj commented Mar 6, 2023

Fixes #371, but not really.

}
console.warn("node-util-inspect not supported on this browser")
console.log(obj)
return String(obj) + " // See browser console"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to swap hint and object representation, so the hint is always be visible in case of big objects

Suggested change
return String(obj) + " // See browser console"
return "// See browser console. Stringifyed result:\n" + String(obj)

@hildjj
Copy link
Contributor Author

hildjj commented Mar 16, 2023

I decided to fix this in node-inspect-extracted after all.

@hildjj hildjj closed this Mar 16, 2023
@hildjj hildjj deleted the safari-lookbehind branch March 17, 2023 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error using online Peggy - Can't find variable: util
2 participants