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 — module: force require('process') to return a reference to process by lxe · Pull Request #206 · nodejs/node

Conversation

@lxe

@lxe lxe commented Dec 23, 2014

Copy link
Copy Markdown

This makes require('process') always return a reference to the global process object. Fixes #157

Sorry, something went wrong.

Uh oh!

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

All reactions
@vkurchatkin

vkurchatkin commented Dec 23, 2014

Copy link
Copy Markdown
Contributor

Why not module.exports = global.process?

All reactions

Sorry, something went wrong.

Uh oh!

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

@lxe

lxe commented Dec 23, 2014

Copy link
Copy Markdown
Author

@vkurchatkin there were a few ways to do this... making lib/process.js with module.exports = process is certainly one of them, and I wasn't sure which one would look more like a hack. We're already removing lib/sys which did the one-line re-export, so I was thinking we probably shouldn't create whole files just to do a re-export.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis

bnoordhuis commented Dec 23, 2014

Copy link
Copy Markdown
Member

I prefer the lib/process.js approach. Anything that doesn't require hacking lib/module.js.

All reactions

Sorry, something went wrong.

Uh oh!

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

@lxe
lxe force-pushed the require-process branch from d282450 to 1e6df6a Compare December 23, 2014 23:09
@lxe

lxe commented Dec 23, 2014

Copy link
Copy Markdown
Author

@bnoordhuis added lib/process.js instead of the conditionals.

All reactions

Sorry, something went wrong.

Uh oh!

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

bnoordhuis
bnoordhuis reviewed Dec 24, 2014
View reviewed changes
Comment thread lib/process.js Outdated

@bnoordhuis bnoordhuis Dec 24, 2014

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.

Can you change this to either // Copyright io.js contributors or your own / your company's name?

Sorry, something went wrong.

Uh oh!

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

All reactions
@bnoordhuis

bnoordhuis commented Dec 24, 2014

Copy link
Copy Markdown
Member

LGTM technically but as the discussion in #157 doesn't appear to have reached a conclusion, I won't merge it straight away. I'll bring it up at the next TC meeting unless enough TC members +1 it before that.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis bnoordhuis added the tc-agenda label Dec 24, 2014
@lxe

lxe commented Dec 25, 2014

Copy link
Copy Markdown
Author

Happy holidays everyone!

All reactions

Sorry, something went wrong.

Uh oh!

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

@lxe
lxe force-pushed the require-process branch from 64087ac to fef4b88 Compare December 25, 2014 21:48
@rvagg rvagg mentioned this pull request Dec 26, 2014
io.js TC Meeting 2014-12-30 #211
Closed
@bnoordhuis

bnoordhuis commented Dec 30, 2014

Copy link
Copy Markdown
Member

@lxe Still one nit but if you fix that, I'll land it. Thanks.

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis bnoordhuis removed the tc-agenda label Dec 30, 2014
@piscisaureus piscisaureus closed this Dec 30, 2014
@piscisaureus piscisaureus reopened this Dec 30, 2014
Aleksey Smolenchuk
module: force require('process') to return a reference to process
cec8255
This makes require('process') always return a reference to the global
process object.
@lxe
lxe force-pushed the require-process branch from fef4b88 to cec8255 Compare December 30, 2014 22:26
@lxe

lxe commented Dec 30, 2014

Copy link
Copy Markdown
Author

@bnoordhuis totally missed that one! Thanks.

All reactions

Sorry, something went wrong.

Uh oh!

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

bnoordhuis pushed a commit that referenced this pull request Dec 30, 2014
Aleksey Smolenchuk @bnoordhuis
lib: introduce process module
d8586ea
This makes require('process') always return a reference to the global
process object.

PR-URL: #206
Reviewed-By: Ben Noordhuis <[email protected]>
@bnoordhuis

bnoordhuis commented Dec 30, 2014

Copy link
Copy Markdown
Member

Cheers Aleksey, landed in d8586ea. I had to reword the first line to make it fit in 50 columns. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@bnoordhuis bnoordhuis closed this Dec 30, 2014
@lxe

lxe commented Dec 30, 2014

Copy link
Copy Markdown
Author

Great stuff @bnoordhuis. thank you!

All reactions

Sorry, something went wrong.

Uh oh!

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

@rvagg

rvagg commented Jan 2, 2015

Copy link
Copy Markdown
Member

ftr, agreed to merge this in TC meeting 2014-12-30 #229

All reactions

Sorry, something went wrong.

Uh oh!

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

@cjihrig cjihrig mentioned this pull request Jan 2, 2015
Make process requireable #157
Closed
@rvagg rvagg mentioned this pull request Jan 3, 2015
governance: Add new Collaborators #234
Closed
@andrewdeandrade andrewdeandrade mentioned this pull request Jan 20, 2015
Make process requireable nodejs/node-v0.x-archive#8866
Closed
@snyk-bot snyk-bot mentioned this pull request Jan 8, 2020
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 timscharfenort/node#5
Open
@snyk-bot snyk-bot mentioned this pull request Jul 5, 2020
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 sitedata/node#3
Open
@snyk-bot snyk-bot mentioned this pull request Aug 11, 2020
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 radiumrasheed/node#3
Open
@snyk-bot snyk-bot mentioned this pull request Mar 9, 2022
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 RickAllMighty8195/node#10
Open
@snyk-bot snyk-bot mentioned this pull request Mar 25, 2022
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 lamjay2704/node#9
Open
@snyk-bot snyk-bot mentioned this pull request Jul 19, 2022
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 jgowdy/node#5
Open
@snyk-bot snyk-bot mentioned this pull request Oct 10, 2022
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 lokera666/node#4
Open
This was referenced Feb 14, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 Dixiejane/node#5
Open
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 SanchitMahajan236/node#8
Closed
@snyk-bot snyk-bot mentioned this pull request Mar 15, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 davidmather/node#1
Open
@snyk-bot snyk-bot mentioned this pull request Mar 22, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 Bank4500/nodejs#5
Open
@snyk-bot snyk-bot mentioned this pull request May 5, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 ashly1111111/node#14
Open
@nicholaschoi168 nicholaschoi168 mentioned this pull request May 16, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 nicholaschoi168/node#7
Open
@pranathi-nallamilli pranathi-nallamilli mentioned this pull request Aug 5, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 pranathi-nallamilli/node#5
Open
@JCsomeShots JCsomeShots mentioned this pull request Sep 19, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 JCsomeShots/node#1
Open
@kingjay66 kingjay66 mentioned this pull request Oct 15, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 kingjay66/node#4
Open
@Jingyi090 Jingyi090 mentioned this pull request Nov 17, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 Jingyi090/node#1
Open
@nickfnblum nickfnblum mentioned this pull request Nov 21, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 nickfnblum/node#7
Open
@ashly1111111 ashly1111111 mentioned this pull request Nov 24, 2023
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 ashly1111111/node#69
Open
@aravindb26 aravindb26 mentioned this pull request Jan 4, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 aravindb26/node#1
Open
@CxsLucyfer CxsLucyfer mentioned this pull request Jan 29, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 CxsLucyfer/node#1
Open
@gr00nd gr00nd mentioned this pull request Feb 6, 2024
[Snyk] Upgrade globals from 10.1.0 to 13.24.0 gr00nd/node#10
Open
@ahamedislam ahamedislam mentioned this pull request Feb 22, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 ahamedislam/node#1
Open
@DanyRay420 DanyRay420 mentioned this pull request Feb 24, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 DanyRay420/node#2
Open
@matrix-compute matrix-compute mentioned this pull request Mar 28, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 matrix-compute/node.js#2
Open
@ashly1111111 ashly1111111 mentioned this pull request Mar 29, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 ashly1111111/node#94
Open
@lairortega lairortega mentioned this pull request Apr 14, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 lairortega/node#1
Open
@yaseenaljamal yaseenaljamal mentioned this pull request Apr 25, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 yaseenaljamal/node#5
Open
@dannybrown13 dannybrown13 mentioned this pull request May 7, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 dannybrown13/node#93
Open
@CharliesAngel1 CharliesAngel1 mentioned this pull request May 7, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 CharliesAngel1/node#14
Open
@snyk-io snyk-io Bot mentioned this pull request May 21, 2024
[Snyk] Upgrade rollup-plugin-node-resolve from 4.0.0 to 4.2.4 Hawthorne001/node2#2
Open
syg pushed a commit to syg/node that referenced this pull request May 5, 2025
@rmahdav pthier
Update parallel.status (nodejs#206)
d50c960
bakkot pushed a commit to bakkot/node that referenced this pull request May 11, 2026
@rmahdav pthier
Update parallel.status (nodejs#206)
ca7033e
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.

5 participants

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