FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test,worker_threads: simplify common.isMainThread by Trott · Pull Request #25426 · nodejs/node · GitHub

/ node Public

test,worker_threads: simplify common.isMainThread - #25426

Closed
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:my-main-thread
Closed

test,worker_threads: simplify common.isMainThread#25426
Trott wants to merge 1 commit into
nodejs:masterfrom
Trott:my-main-thread

Conversation

Trott commented Jan 9, 2019

Copy link
Copy Markdown
Member

Now that worker_threads do not require a flag, the logic around
loading isMainThread can be removed.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Now that `worker_threads` do not require a flag, the logic around
loading `isMainThread` can be removed.

Copy link
Copy Markdown
Collaborator

nodejs-github-bot added the test Issues and PRs related to the tests. label Jan 9, 2019

Trott commented Jan 9, 2019
edited
Loading

Copy link
Copy Markdown
Member Author

Copy link
Copy Markdown
Member

Is there a case for removing this from common entirely now and directly calling require('worker_threads').isMainThread from the tests?

Trott commented Jan 10, 2019

Copy link
Copy Markdown
Member Author

Is there a case for removing this from common entirely now and directly calling require('worker_threads').isMainThread from the tests?

@richardlau Yes, probably, but that will be a larger change with more churn that will be more likely to have merge conflicts on backporting etc. So I was thinking: Do this narrower change first.

Trott added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jan 11, 2019

Trott commented Jan 12, 2019

Copy link
Copy Markdown
Member Author

Landed in 9e62bb5

Trott closed this Jan 12, 2019
Trott added a commit to Trott/io.js that referenced this pull request Jan 12, 2019
Now that `worker_threads` do not require a flag, the logic around
loading `isMainThread` can be removed.

PR-URL: nodejs#25426
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
addaleax pushed a commit that referenced this pull request Jan 14, 2019
Now that `worker_threads` do not require a flag, the logic around
loading `isMainThread` can be removed.

PR-URL: #25426
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
BridgeAR mentioned this pull request Jan 16, 2019
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Jan 16, 2019
Now that `worker_threads` do not require a flag, the logic around
loading `isMainThread` can be removed.

PR-URL: nodejs#25426
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins mentioned this pull request Jan 24, 2019
Trott deleted the my-main-thread branch January 13, 2022 22:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL