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

util: fix inspection of class instance prototypes #33449

Closed
wants to merge 2 commits into from

Conversation

BridgeAR
Copy link
Member

To achieve this, some internal custom inspect functions had to be
changed. They relied upon the former behavior.

Fixes: #33419

Signed-off-by: Ruben Bridgewater [email protected]

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@nodejs-github-bot nodejs-github-bot added encoding Issues and PRs related to the TextEncoder and TextDecoder APIs. util Issues and PRs related to the built-in util module. vm Issues and PRs related to the vm subsystem. labels May 17, 2020
@devsnek
Copy link
Member

devsnek commented May 17, 2020

remember to use ?w=1 when reviewing

@nodejs-github-bot
Copy link
Collaborator

@BridgeAR
Copy link
Member Author

@nodejs/util PTAL

@BridgeAR
Copy link
Member Author

This could use some reviews. Not sure whom else to ping.

Copy link
Contributor

@antsmartian antsmartian left a comment

Choose a reason for hiding this comment

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

LGTM

@antsmartian antsmartian added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 23, 2020
@BridgeAR BridgeAR closed this May 23, 2020
@BridgeAR BridgeAR reopened this May 23, 2020
@nodejs-github-bot
Copy link
Collaborator

Copy link
Member

@benjamingr benjamingr left a comment

Choose a reason for hiding this comment

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

LGTM.

(I have some minor code style nits after running this with the debugger but honestly this went 6 days without lots of attention and I feel the code is mostly good and I'll just follow up with a PR if I feel strongly enough about the nits.)

To achieve this, some internal custom inspect functions had to be
changed. They relied upon the former behavior.

Fixes: nodejs#33419

Signed-off-by: Ruben Bridgewater <[email protected]>

PR-URL: nodejs#33449
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@BridgeAR
Copy link
Member Author

BridgeAR commented May 23, 2020

@benjamingr if you would like anything changed, please comment. I am happy to follow-up on those.

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented May 23, 2020

BridgeAR added a commit to BridgeAR/node that referenced this pull request May 25, 2020
To achieve this, some internal custom inspect functions had to be
changed. They relied upon the former behavior.

Signed-off-by: Ruben Bridgewater <[email protected]>

PR-URL: nodejs#33449
Fixes: nodejs#33419
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@BridgeAR
Copy link
Member Author

Landed in e24731c

@BridgeAR BridgeAR closed this May 25, 2020
codebytere pushed a commit that referenced this pull request Jun 18, 2020
To achieve this, some internal custom inspect functions had to be
changed. They relied upon the former behavior.

Signed-off-by: Ruben Bridgewater <[email protected]>

PR-URL: #33449
Fixes: #33419
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@codebytere codebytere mentioned this pull request Jun 28, 2020
codebytere pushed a commit that referenced this pull request Jun 30, 2020
To achieve this, some internal custom inspect functions had to be
changed. They relied upon the former behavior.

Signed-off-by: Ruben Bridgewater <[email protected]>

PR-URL: #33449
Fixes: #33419
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@codebytere
Copy link
Member

@BridgeAR should this go back to v12.x? Looks like it'll need a manual backport if yes - if not just remove the label :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. encoding Issues and PRs related to the TextEncoder and TextDecoder APIs. util Issues and PRs related to the built-in util module. vm Issues and PRs related to the vm subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Console output for class instance __proto__ seems wrong
7 participants