GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — util: improve empty typed array inspection by BridgeAR · Pull Request #22284 · nodejs/node

Conversation

@BridgeAR

@BridgeAR BridgeAR commented Aug 12, 2018

Copy link
Copy Markdown
Member

They should be aligned with all other empty objects. Therefore the
whitespace is removed and they got a fast path for that.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@BridgeAR
util: improve empty typed array inspection
ae300c6
They should be aligned with all other empty objects. Therefore the
whitespace is removed and they got a fast path for that.
@nodejs-github-bot

nodejs-github-bot commented Aug 12, 2018

Copy link
Copy Markdown
Collaborator

@BridgeAR build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/535/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added the util Issues and PRs related to the built-in util module. label Aug 12, 2018
jasnell
jasnell approved these changes Aug 12, 2018
View reviewed changes
@jasnell

jasnell commented Aug 12, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I really don't want this to be semver-major but the output change may require it. Thoughts @nodejs/tsc?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

devsnek
devsnek approved these changes Aug 12, 2018
View reviewed changes

@devsnek devsnek left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

lgtm without semver-major. the docs explicitly say not to use the output of util.inspect programmatically.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
trivikr
trivikr approved these changes Aug 12, 2018
View reviewed changes
@BridgeAR
fixup: another test required an update
d37c0a9
addaleax
addaleax approved these changes Aug 12, 2018
View reviewed changes

@addaleax addaleax left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I think in this case it’s okay to land it as a non-breaking change if CITGM is okay with it.

(I’d generally keep it a case-by-case decision, though.)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@BridgeAR

BridgeAR commented Aug 13, 2018

Copy link
Copy Markdown
Member Author

CI https://ci.nodejs.org/job/node-test-pull-request/16407/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Aug 13, 2018
lpinca
lpinca approved these changes Aug 13, 2018
View reviewed changes
@BridgeAR
fixup: do not use fast path for showHidden = true
6d1fc35
@BridgeAR

BridgeAR commented Aug 13, 2018

Copy link
Copy Markdown
Member Author

I just pushed another commit to prevent this path from being taken in case showHidden is set to true.

CI https://ci.nodejs.org/job/node-test-pull-request/16428/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

JungMinu
JungMinu approved these changes Aug 15, 2018
View reviewed changes
@joyeecheung joyeecheung mentioned this pull request Aug 15, 2018
CI failures: 20180815 nodejs/reliability#13
Closed
dnalborczyk pushed a commit to dnalborczyk/node that referenced this pull request Aug 15, 2018
@BridgeAR
util: improve empty typed array inspection
db6a246
They should be aligned with all other empty objects. Therefore the
whitespace is removed and they got a fast path for that.

PR-URL: nodejs#22284
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
@BridgeAR

BridgeAR commented Aug 15, 2018

Copy link
Copy Markdown
Member Author

CITGM this PR https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1509/
CITGM other PR https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1507/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR

BridgeAR commented Aug 15, 2018

Copy link
Copy Markdown
Member Author

CITGM runs came out fine.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR

BridgeAR commented Aug 15, 2018

Copy link
Copy Markdown
Member Author

Landed in db6a246

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR closed this Aug 15, 2018
@targos targos added backport-requested-v10.x and removed author ready PRs with CI started, the required approvals, and no outstanding review comments. labels Aug 19, 2018
@targos

targos commented Aug 19, 2018

Copy link
Copy Markdown
Member

Should this be backported to v10.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Aug 19, 2018

Copy link
Copy Markdown
Member

Landed easily after #21869

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos targos removed the backport-requested-v10.x label Aug 19, 2018
targos pushed a commit that referenced this pull request Aug 19, 2018
@BridgeAR @targos
util: improve empty typed array inspection
9bfe4c7
They should be aligned with all other empty objects. Therefore the
whitespace is removed and they got a fast path for that.

PR-URL: #22284
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
targos pushed a commit that referenced this pull request Sep 3, 2018
@BridgeAR @targos
util: improve empty typed array inspection
3dc3a31
They should be aligned with all other empty objects. Therefore the
whitespace is removed and they got a fast path for that.

PR-URL: #22284
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
@targos targos mentioned this pull request Sep 5, 2018
Release proposal: v10.10.0 #22716
Merged
@beevelop beevelop mentioned this pull request Sep 6, 2018
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-android-nodejs#236
Closed
@beevelop beevelop mentioned this pull request Sep 6, 2018
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-nodejs#221
Closed
@BridgeAR
BridgeAR deleted the fast-empty-typedarray branch January 20, 2020 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@addaleax addaleax addaleax approved these changes
@lpinca lpinca lpinca approved these changes
@JungMinu JungMinu JungMinu approved these changes
@trivikr trivikr trivikr approved these changes
+1 more reviewer
@devsnek devsnek devsnek approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

util Issues and PRs related to the built-in util module.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@BridgeAR @nodejs-github-bot @jasnell @targos @addaleax @lpinca @JungMinu @devsnek @trivikr
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.