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

Support Deno.customInspect for better debugging in Deno #226

Closed

Conversation

lionel-rowe
Copy link

Deno.customInspect is not currently supported, which causes logging of Temporal objects in Deno to be pretty unhelpful. Before:

console.log(Temporal.Now.instant())
// Temporal.Instant {}

This PR adds support for this in the same way as nodejs.util.inspect.custom is supported for Node. After:

console.log(Temporal.Now.instant())
// Temporal.Instant <2023-02-28T12:00:20.232618577Z>

@lionel-rowe lionel-rowe marked this pull request as draft February 28, 2023 12:29
@lionel-rowe lionel-rowe closed this Mar 1, 2023
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.

1 participant