Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

ci: add macos to CI #63

Closed
wants to merge 2 commits into from
Closed

ci: add macos to CI #63

wants to merge 2 commits into from

Conversation

addaleax
Copy link
Contributor

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

ci

@@ -63,7 +65,7 @@ const deserializerTypeError =
{
const ser = new v8.DefaultSerializer();
ser._writeHostObject = common.mustCall((object) => {
assert.strictEqual(object, process.stdin._handle);
assert.strictEqual(object, hostObject);
const buf = Buffer.from('stdin');
Copy link
Contributor

Choose a reason for hiding this comment

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

[Curiosity / context question]: I assume that in the context of this test, "stdin" is meant to be just a random string constant. Would it be less confusing to change it to something like "hostObjectTag" or similar after this change? Or are you trying to keep the churn minimal?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I just did search/replace, that’s all. ;) Thanks for catching is, updated!

If `stdin` was closed or referred to a file, this didn't work,
because it was accessed via file descriptor.

Instead, use another generic native object.
@@ -20,6 +20,8 @@ const objects = [
circular
];

const hostObject = new (process.binding('js_stream').JSStream)();
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 I thought this exploded last time I tried it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean, constructing a JSStream like that? It seems to work fine to me

addaleax added a commit that referenced this pull request Sep 18, 2017
If `stdin` was closed or referred to a file, this didn't work,
because it was accessed via file descriptor.

Instead, use another generic native object.

PR-URL: #63
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
addaleax added a commit that referenced this pull request Sep 18, 2017
PR-URL: #63
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
@addaleax
Copy link
Contributor Author

Landed in 06a1e54, edc403c

@addaleax addaleax closed this Sep 18, 2017
@addaleax addaleax deleted the macos-ci branch September 18, 2017 22:50
danbev pushed a commit to danbev/node that referenced this pull request Oct 23, 2017
If `stdin` was closed or referred to a file, this didn't work,
because it was accessed via file descriptor.

Instead, use another generic native object.

cherry-picked from ayojs/ayo#63
danbev pushed a commit to danbev/node that referenced this pull request Oct 25, 2017
If `stdin` was closed or referred to a file, this didn't work,
because it was accessed via file descriptor.

Instead, use another generic native object.

cherry-picked from ayojs/ayo#63

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
cjihrig pushed a commit to nodejs/node that referenced this pull request Oct 25, 2017
If `stdin` was closed or referred to a file, this didn't work,
because it was accessed via file descriptor.

Instead, use another generic native object.

cherry-picked from ayojs/ayo#63

Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants