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

chore(ext/console): inspect anonymous function as [Function (anonymous)] #18283

Merged
merged 4 commits into from
Mar 21, 2023

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Mar 20, 2023

This PR changes the inspect result of anonymous functions from [Function] to [Function (anonymous)].

This behavior is aligned to util.inspect of Node.js and this change prepares for unifying Deno.inspect and util.inspect. ref #17960

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

@kt3k kt3k merged commit 896d7f0 into denoland:main Mar 21, 2023
@kt3k kt3k deleted the inspect-anonymous-function branch March 21, 2023 04:12
dsherret pushed a commit to dsherret/deno that referenced this pull request Mar 21, 2023
…us)]` (denoland#18283)

This PR changes the inspect result of anonymous functions from
`[Function]` to `[Function (anonymous)]`. This behavior is aligned
to `util.inspect` of Node.js.
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.

2 participants