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

test: consolidating buffer.read() #11297

Closed
wants to merge 2 commits into from

Conversation

larissayvette
Copy link
Contributor

Checklist
Affected core subsystem(s)

test
Merging buffer-read test present in test-buffer-alloc.js to test-buffer-read.js file

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Feb 10, 2017
Copy link
Member

@Trott Trott left a comment

Choose a reason for hiding this comment

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

LGTM if CI is green.

@mscdex mscdex added the buffer Issues and PRs related to the buffer subsystem. label Feb 10, 2017

// attempt to overflow buffers, similar to previous bug in array buffers
assert.throws(() => Buffer.allocUnsafe(8).readFloatLE(0xffffffff),
RangeError);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we check the actual errors itself, so that we can avoid problems like #11162?

Copy link
Member

Choose a reason for hiding this comment

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

I'm in favor of this, but since this PR is a straightforward re-organization of the tests and not actual changes/enhancements, I'd be OK with that happening in a subsequent PR.

@Trott
Copy link
Member

Trott commented Feb 14, 2017

@jasnell
Copy link
Member

jasnell commented Feb 16, 2017

one failure in ci is unrelated

jasnell pushed a commit that referenced this pull request Feb 17, 2017
PR-URL: #11297
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@jasnell
Copy link
Member

jasnell commented Feb 17, 2017

landed in 8a25e31

@jasnell jasnell closed this Feb 17, 2017
@larissayvette larissayvette deleted the read-buffer branch February 17, 2017 09:27
italoacasas pushed a commit to italoacasas/node that referenced this pull request Feb 20, 2017
PR-URL: nodejs#11297
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
italoacasas pushed a commit that referenced this pull request Feb 22, 2017
PR-URL: #11297
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@italoacasas italoacasas mentioned this pull request Feb 25, 2017
@jasnell
Copy link
Member

jasnell commented Mar 7, 2017

would need a backport PR to land on v4

jasnell pushed a commit that referenced this pull request Mar 7, 2017
PR-URL: #11297
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins pushed a commit that referenced this pull request Mar 9, 2017
PR-URL: #11297
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Mar 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buffer Issues and PRs related to the buffer subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants