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 — src: fix `process.platform` by vkurchatkin · Pull Request #271 · nodejs/node

Conversation

@vkurchatkin

@vkurchatkin vkurchatkin commented Jan 9, 2015

Copy link
Copy Markdown
Contributor

e1fe270 introduces NODE_PLATFORM macro which had to be redefined in node.gyp for process.platform to return expected values.

Not sure about win and solaris (can't test), but for OS X process.platform returned mac instead of darwin and broke some tests.

/cc @piscisaureus

Sorry, something went wrong.

Uh oh!

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

All reactions
bnoordhuis
bnoordhuis reviewed Jan 9, 2015
View reviewed changes
Comment thread src/node.cc Outdated

@bnoordhuis bnoordhuis Jan 9, 2015

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.

Style: indentation is off here.

Sorry, something went wrong.

Uh oh!

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

All reactions

@vkurchatkin vkurchatkin Jan 9, 2015

Copy link
Copy Markdown
Contributor Author

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.

@bnoordhuis what is the preferred way? Like this: https://github.com/iojs/io.js/blob/v1.x/src/node.cc#L2655 or like this https://github.com/iojs/io.js/blob/v1.x/src/node.cc#L2666 ?

Sorry, something went wrong.

Uh oh!

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

All reactions

@bnoordhuis bnoordhuis Jan 9, 2015

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.

The former is the preferred style. The latter is for when the former would exceed 80 columns.

Sorry, something went wrong.

Uh oh!

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

All reactions

@vkurchatkin vkurchatkin Jan 9, 2015

Copy link
Copy Markdown
Contributor Author

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.

fixed

Sorry, something went wrong.

Uh oh!

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

All reactions
@vkurchatkin
src: fix process.platform
6bbdde8
e1fe270 introduces NODE_PLATFORM macro which had to be redefined
in node.gyp for `process.platform` to return expected values.
@vkurchatkin
vkurchatkin force-pushed the fix-platform branch from 66cc909 to 6bbdde8 Compare January 9, 2015 13:16
@bnoordhuis

bnoordhuis commented Jan 9, 2015

Copy link
Copy Markdown
Member

LGTM. I'll let @piscisaureus sign off on it and land it.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis

bnoordhuis commented Jan 9, 2015

Copy link
Copy Markdown
Member

@vkurchatkin And thanks, of course! :-)

All reactions

Sorry, something went wrong.

Uh oh!

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

piscisaureus pushed a commit that referenced this pull request Jan 9, 2015
@vkurchatkin @piscisaureus
build: fix process.platform
9f45799
e1fe270 introduces the NODE_PLATFORM macro which had to be redefined in
node.gyp for `process.platform` to return expected values.

PR-URL: #271
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Bert Belder <[email protected]>
@piscisaureus

piscisaureus commented Jan 9, 2015

Copy link
Copy Markdown
Contributor

It was kind of a dumb mistake of me to assume that windows would be the only platform where the node platform was different from the gyp os value. I did grep for occurences of PLATFORM in source folders, but I forgot to look inside the gyp file itself.

Thanks @vkurchatkin for fixing this! Landed in 9f45799.

All reactions

Sorry, something went wrong.

Uh oh!

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

@piscisaureus piscisaureus closed this Jan 9, 2015
This was referenced Nov 28, 2023
[Snyk] Security upgrade xo from 0.16.0 to 0.20.0 leonardoadame/node#207
Open
[Snyk] Security upgrade xo from 0.11.2 to 0.20.0 leonardoadame/node#209
Open
@aliceUnhinged613 aliceUnhinged613 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities aliceUnhinged613/node#118
Open
@ryan-ally ryan-ally mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities ryan-ally/node#99
Open
@jen801 jen801 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities jen801/node#34
Open
@wedataintelligence wedataintelligence mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities wedataintelligence/node#101
Open
@adamlaska adamlaska mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities adamlaska/node#140
Open
@baby636 baby636 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities baby636/node#132
Open
@ron-a20 ron-a20 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities ron-a20/node#116
Open
@amacsnyk amacsnyk mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities amacsnyk/node#19
Closed
@jhudaz jhudaz mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities jhudaz/node#64
Open
@PinkDiamond1 PinkDiamond1 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities PinkDiamond1/node#33
Open
This was referenced Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities pratapadi/node#102
Open
[Snyk] Security upgrade pacote from 11.3.5 to 16.0.0 pratapadi/node#104
Open
@awaisab172 awaisab172 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities awaisab172/node#56
Open
@yotamselementor yotamselementor mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities yotamselementor/node#40
Open
@RoeeOren RoeeOren mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities RoeeOren/node#50
Open
@pratapadi pratapadi mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade pacote from 11.3.5 to 16.0.0 pratapadi/node#107
Open
@Matthelonianxl Matthelonianxl mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Matthelonianxl/node#64
Open
@Verdinjoshua26 Verdinjoshua26 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Verdinjoshua26/node#59
Open
@thisguy726 thisguy726 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities thisguy726/node#20
Open
@terrorizer1980 terrorizer1980 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities terrorizer1980/node-1#19
Open
@kaocher82 kaocher82 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Xtuden-com/node#44
Open
@sirinartk sirinartk mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities sirinartk/node#55
Open
@pratapadi pratapadi mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade pacote from 11.3.5 to 16.0.0 pratapadi/node#109
Open
@timzwit timzwit mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities timzwit/node#37
Open
@MrBrain295 MrBrain295 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities MrBrain295/node#32
Open
@kissofire kissofire mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities kissofire/node#120
Open
@molllyn1 molllyn1 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities molllyn1/node#103
Open
@137717unity 137717unity mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities 137717unity/node#119
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

None yet

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.

3 participants

@vkurchatkin @bnoordhuis @piscisaureus
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.