Skip to content

report: represent numbers as numbers - #25651

Closed
addaleax wants to merge 2 commits into
nodejs:masterfrom
addaleax:report-numbers
Closed

report: represent numbers as numbers#25651
addaleax wants to merge 2 commits into
nodejs:masterfrom
addaleax:report-numbers

Conversation

@addaleax

Copy link
Copy Markdown
Member

report: refactor JSON writer

  • Support non-string entry types
  • Prefer single-character writes over string writes
  • Rename the state constants and adjust style to match more common Node.js style

report: represent numbers as numbers

Do not stringify numbers and boolean values when writing JSON.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

- Support non-string entry types
- Prefer single-character writes over string writes
- Rename the state constants and adjust style to match more
common Node.js style
Do not stringify numbers and boolean values when writing JSON.
@addaleaxaddaleax added the report Issues and PRs related to process.report. label Jan 22, 2019
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jan 22, 2019
@addaleax

Copy link
Copy Markdown
MemberAuthor

@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 24, 2019
@addaleax

Copy link
Copy Markdown
MemberAuthor

@mhdawsonmhdawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@addaleax

Copy link
Copy Markdown
MemberAuthor

@addaleax

Copy link
Copy Markdown
MemberAuthor

@addaleax

Copy link
Copy Markdown
MemberAuthor

Sigh… let’s try a fresh full CI: https://ci.nodejs.org/job/node-test-pull-request/20353/

@addaleax

Copy link
Copy Markdown
MemberAuthor

Landed in 08e9111, accd674

@addaleax
addaleax deleted the report-numbers branch January 27, 2019 19:40
addaleax added a commit that referenced this pull request Jan 27, 2019
- Support non-string entry types
- Prefer single-character writes over string writes
- Rename the state constants and adjust style to match more
common Node.js style
PR-URL: #25651
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
addaleax added a commit that referenced this pull request Jan 27, 2019
Do not stringify numbers and boolean values when writing JSON.
PR-URL: #25651
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
addaleax added a commit that referenced this pull request Jan 28, 2019
- Support non-string entry types
- Prefer single-character writes over string writes
- Rename the state constants and adjust style to match more
common Node.js style
PR-URL: #25651
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
addaleax added a commit that referenced this pull request Jan 28, 2019
Do not stringify numbers and boolean values when writing JSON.
PR-URL: #25651
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@targostargos mentioned this pull request Jan 29, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.reportIssues and PRs related to process.report.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@addaleax@nodejs-github-bot@cjihrig@mmarchini@richardlau@gireeshpunathil@BethGriggs@mhdawson