-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
streams: move process.binding('stream_wrap') to internalBinding #22345
Conversation
@jasnell sadly an error occured when I tried to trigger a build :( |
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
I'm seeing the following failure when running the test locally: $ out/Release/node /Users/danielbevenius/work/nodejs/node/test/pseudo-tty/test-tty-wrap.js
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module 'internal/test/binding'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/Users/danielbevenius/work/nodejs/node/test/pseudo-tty/test-tty-wrap.js:4:29)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3) |
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.
One small change, otherwise LGTM
@@ -1,8 +1,9 @@ | |||
'use strict'; | |||
require('../common'); | |||
|
|||
const TTY = process.binding('tty_wrap').TTY; | |||
const WriteWrap = process.binding('stream_wrap').WriteWrap; | |||
const { internalBinding } = require('internal/test/binding'); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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 but I would rather have less churn in the benchmarks.
break; | ||
default: | ||
throw new Error(`invalid type: ${type}`); | ||
function fail(err, syscall) { |
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.
AFAIK not all function have to be moved inside main
, e.g., fail
should be fine as is.
It should also be less churn if the arguments are just passed to the functions instead of moving the functions.
86f9cf5
to
f7ead8a
Compare
Trying CI again: https://ci.nodejs.org/job/node-test-pull-request/16542/ |
cf6aced
to
d305dfe
Compare
CI, again, after rebase: https://ci.nodejs.org/job/node-test-pull-request/16561/ |
linuxone build bot failed... trying again https://ci.nodejs.org/job/node-test-commit-linuxone/4131/ |
d305dfe
to
ba2c323
Compare
@nodejs/build ... linuxone build bot is failing consistently. |
Resume Build: https://ci.nodejs.org/job/node-test-pull-request/16575/ |
PR-URL: nodejs#22345 Refs: nodejs#22160 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Landed in 884b23d |
Refs: #22160
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes