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(cli/console): only inspect getters with option #7830

Conversation

caspervonb
Copy link
Contributor

This makes evaluation of getters an explicit option called getters exposed via InspectOptions.
This option defaults to false fixing the current bad behaviour of inspecting getters which has the potential to cause side effects, when it is false a getter is simply reported as [Getter] or [Getter/Setter] if its a get/set pair.

Fixes #7153

@bartlomieju bartlomieju added this to the 1.5.0 milestone Oct 5, 2020
@bartlomieju
Copy link
Member

@nayeemrmn PTAL

Copy link
Collaborator

@nayeemrmn nayeemrmn left a comment

Choose a reason for hiding this comment

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

LGTM

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

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.

Deno calls object getters when logging, resulting in code that performs differently than expected.
3 participants