René's URL Explorer Experiment


Title: `--conditions xxx` cannot pass into `worker_thread` · Issue #50885 · nodejs/node · GitHub

Open Graph Title: `--conditions xxx` cannot pass into `worker_thread` · Issue #50885 · nodejs/node

X Title: `--conditions xxx` cannot pass into `worker_thread` · Issue #50885 · nodejs/node

Description: Version v20.10.0 Platform Darwin Alexs-MacBook-Pro.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64 Subsystem module What steps will reproduce the bug? // main.js imp...

Open Graph Description: Version v20.10.0 Platform Darwin Alexs-MacBook-Pro.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64 Subsystem module What step...

X Description: Version v20.10.0 Platform Darwin Alexs-MacBook-Pro.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64 Subsystem module What step...

Opengraph URL: https://github.com/nodejs/node/issues/50885

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`--conditions xxx` cannot pass into `worker_thread`","articleBody":"### Version\r\n\r\nv20.10.0\r\n\r\n### Platform\r\n\r\nDarwin Alexs-MacBook-Pro.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct  9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64\r\n\r\n### Subsystem\r\n\r\nmodule\r\n\r\n### What steps will reproduce the bug?\r\n\r\n```js\r\n// main.js\r\nimport { Worker } from 'node:worker_threads'\r\n\r\nnew Worker(new URL('worker.js', import.meta.url), {\r\n  execArgv: ['--conditions', 'react-server']\r\n})\r\n```\r\n\r\n```js\r\n// worker.js\r\nimport { register } from 'node:module'\r\n\r\nregister('./register.js', import.meta.url)\r\n\r\nconsole.log('1')\r\n\r\nimport('./test.js')\r\n```\r\n\r\n```js\r\n// register.js\r\nexport async function resolve (specifier, context, nextResolve) {\r\n  // Take an `import` or `require` specifier and resolve it to a URL.\r\n  console.log('context', context.conditions)\r\n  return nextResolve(specifier, context, nextResolve)\r\n}\r\n\r\nexport async function load (url, context, nextLoad) {\r\n  return nextLoad(url, context, nextLoad)\r\n}\r\n```\r\n\r\n```js\r\n// test.js\r\nconsole.log('3')\r\n```\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\n_No response_\r\n\r\n### What is the expected behavior? Why is that the expected behavior?\r\n\r\n```\r\n1\r\ncontext [ 'node', 'import', 'node-addons', 'react-server' ]\r\n3\r\n```\r\n\r\n### What do you see instead?\r\n\r\n```shell\r\n1\r\ncontext [ 'node', 'import', 'node-addons' ]\r\n3\r\n```\r\n\r\n### Additional information\r\n\r\nMight cause RSC bundle issue https://github.com/dai-shi/waku/pull/178","author":{"url":"https://github.com/himself65","@type":"Person","name":"himself65"},"datePublished":"2023-11-23T20:14:50Z","url":"https://github.com/nodejs/node/issues/50885"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:284c8d7f-93e8-a72c-6271-e6741442de16
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB0E0:23B17C:5CBDCD:7EE616:6AED8AD0
html-safe-noncec25947d545353e20afd847c58a9c1720afa7c978a246093f5d007de713af30a6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMEUwOjIzQjE3Qzo1Q0JEQ0Q6N0VFNjE2OjZBRUQ4QUQwIiwidmlzaXRvcl9pZCI6IjM2ODA1OTI3OTA0MDQ1NjU3MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1601d76b1c0addb3ecad0e715759cdefb6e054a91c6a35b9f04db9449cb64fef
hovercard-subject-tagissue:2008750471
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/50885/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a851c9f84b1b9df0db1829e8f4c87b5dc2c4d67199648c9c2c73704ed475164e/nodejs/node/issues/50885
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a851c9f84b1b9df0db1829e8f4c87b5dc2c4d67199648c9c2c73704ed475164e/nodejs/node/issues/50885
og:image:altVersion v20.10.0 Platform Darwin Alexs-MacBook-Pro.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:45 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6020 arm64 Subsystem module What step...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehimself65
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/50885#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F50885
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F50885
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/50885
Reloadhttps://github.com/nodejs/node/issues/50885
Reloadhttps://github.com/nodejs/node/issues/50885
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues654 (654)https://github.com/nodejs/node/issues
Pull requests662 (662)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/50885
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/50885
--conditions xxx cannot pass into worker_threadhttps://github.com/nodejs/node/issues/50885#top
https://github.com/juanarbol
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
esmIssues and PRs related to the ECMAScript Modules implementation.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22esm%22
loadersIssues and PRs related to ES module loaders.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22loaders%22
moduleIssues and PRs related to the module subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22module%22
workerIssues and PRs related to the worker_threads module and Worker API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22worker%22
https://github.com/himself65
himself65https://github.com/himself65
on Nov 23, 2023https://github.com/nodejs/node/issues/50885#issue-2008750471
https://github.com/dai-shi/waku/pull/178https://github.com/dai-shi/waku/pull/178
himself65https://github.com/himself65
workerIssues and PRs related to the worker_threads module and Worker API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22worker%22
moduleIssues and PRs related to the module subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22module%22
on Nov 23, 2023https://github.com/nodejs/node/issues/50885#event-11050721255
himself65https://github.com/himself65
on Nov 23, 2023https://github.com/nodejs/node/issues/50885#event-11050722468
https://github.com/juanarbol
juanarbolhttps://github.com/juanarbol
on Nov 23, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1824888713
juanarbolhttps://github.com/juanarbol
on Nov 23, 2023https://github.com/nodejs/node/issues/50885#event-11050850097
https://github.com/himself65
himself65https://github.com/himself65
on Nov 23, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1824900091
https://github.com/juanarbol
juanarbolhttps://github.com/juanarbol
on Nov 26, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1826477389
https://github.com/juanarbol
juanarbolhttps://github.com/juanarbol
on Nov 26, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1826477791
juanarbolhttps://github.com/juanarbol
esmIssues and PRs related to the ECMAScript Modules implementation.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22esm%22
loadersIssues and PRs related to ES module loaders.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22loaders%22
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
on Nov 26, 2023https://github.com/nodejs/node/issues/50885#event-11061835211
juanarbolhttps://github.com/juanarbol
on Nov 26, 2023https://github.com/nodejs/node/issues/50885#event-11061903904
lib: send the `argv` to the ESM worker thread loaderhttps://github.com/juanarbol/node/commit/95155c44af0eb15f8ac2b8f983d7970b99dc61c7
95155c4https://github.com/juanarbol/node/commit/95155c44af0eb15f8ac2b8f983d7970b99dc61c7
https://github.com/GeoffreyBooth
GeoffreyBoothhttps://github.com/GeoffreyBooth
on Nov 26, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1826636864
https://github.com/himself65
himself65https://github.com/himself65
on Nov 27, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1827059440
https://github.com/himself65
himself65https://github.com/himself65
on Nov 27, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1827059660
https://github.com/himself65/node-js-worker-thread-hookhttps://github.com/himself65/node-js-worker-thread-hook
https://github.com/himself65
himself65https://github.com/himself65
on Nov 27, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1827060072
https://github.com/GeoffreyBooth
GeoffreyBoothhttps://github.com/GeoffreyBooth
on Nov 27, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1827073416
#50916 (review)https://github.com/nodejs/node/pull/50916#pullrequestreview-1749379887
https://github.com/targos
targoshttps://github.com/targos
on Nov 27, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1827236233
@GeoffreyBoothhttps://github.com/GeoffreyBooth
https://github.com/himself65
himself65https://github.com/himself65
on Nov 27, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1827247615
himself65/node-js-worker-thread-hookhttps://github.com/himself65/node-js-worker-thread-hook
https://github.com/juanarbol
juanarbolhttps://github.com/juanarbol
on Nov 28, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1830673411
#50916https://github.com/nodejs/node/pull/50916
https://github.com/GeoffreyBooth
GeoffreyBoothhttps://github.com/GeoffreyBooth
on Nov 29, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1831226599
#50752https://github.com/nodejs/node/pull/50752
https://github.com/guybedford
guybedfordhttps://github.com/guybedford
on Nov 29, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1831346207
https://github.com/juanarbol
juanarbolhttps://github.com/juanarbol
on Nov 29, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1832558585
https://github.com/nodejs/node/blob/main/lib/internal/modules/esm/hooks.js#L508https://github.com/nodejs/node/blob/main/lib/internal/modules/esm/hooks.js#L508
https://github.com/nodejs/node/blob/main/lib/internal/worker.js#L465https://github.com/nodejs/node/blob/main/lib/internal/worker.js#L465
https://github.com/guybedford
guybedfordhttps://github.com/guybedford
on Nov 29, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1832615555
@GeoffreyBoothhttps://github.com/GeoffreyBooth
@GeoffreyBoothhttps://github.com/GeoffreyBooth
https://github.com/GeoffreyBooth
GeoffreyBoothhttps://github.com/GeoffreyBooth
on Nov 29, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1832668838
#50752https://github.com/nodejs/node/pull/50752
https://github.com/juanarbol
juanarbolhttps://github.com/juanarbol
on Nov 30, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1834864519
#50916https://github.com/nodejs/node/pull/50916
#50752https://github.com/nodejs/node/pull/50752
https://github.com/GeoffreyBooth
GeoffreyBoothhttps://github.com/GeoffreyBooth
on Nov 30, 2023https://github.com/nodejs/node/issues/50885#issuecomment-1834906555
#50916https://github.com/nodejs/node/pull/50916
#50752https://github.com/nodejs/node/pull/50752
#50916https://github.com/nodejs/node/pull/50916
https://github.com/daniel-nagy
daniel-nagyhttps://github.com/daniel-nagy
on May 31, 2024https://github.com/nodejs/node/issues/50885#issuecomment-2142428006
https://github.com/santusht06
santusht06https://github.com/santusht06
on Aug 25, 2026https://github.com/nodejs/node/issues/50885#issuecomment-5410588108
#65543https://github.com/nodejs/node/pull/65543
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/50885
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/50885
juanarbolhttps://github.com/juanarbol
confirmed-bugIssues and PRs for confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
esmIssues and PRs related to the ECMAScript Modules implementation.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22esm%22
loadersIssues and PRs related to ES module loaders.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22loaders%22
moduleIssues and PRs related to the module subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22module%22
workerIssues and PRs related to the worker_threads module and Worker API.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22worker%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.