René's URL Explorer Experiment


Title: vm.Module.evaluate() morphs loader errors into module evaluation rejections · Issue #60242 · nodejs/node · GitHub

Open Graph Title: vm.Module.evaluate() morphs loader errors into module evaluation rejections · Issue #60242 · nodejs/node

X Title: vm.Module.evaluate() morphs loader errors into module evaluation rejections · Issue #60242 · nodejs/node

Description: This came up in #60205 (comment) when I was trying to make vm.Module.evaluate() return the module evaluation promise as-is (so synchronously fulfilled for synthetic modules and source text modules without TLA). Currently the validation e...

Open Graph Description: This came up in #60205 (comment) when I was trying to make vm.Module.evaluate() return the module evaluation promise as-is (so synchronously fulfilled for synthetic modules and source text modules ...

X Description: This came up in #60205 (comment) when I was trying to make vm.Module.evaluate() return the module evaluation promise as-is (so synchronously fulfilled for synthetic modules and source text modules ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"vm.Module.evaluate() morphs loader errors into module evaluation rejections","articleBody":"This came up in https://github.com/nodejs/node/pull/60205#discussion_r2423587581 when I was trying to make `vm.Module.evaluate()` return the module evaluation promise as-is (so synchronously fulfilled for synthetic modules and source text modules without TLA). Currently the validation errors, `ERR_VM_MODULE_STATUS`, `THROW_ERR_SCRIPT_EXECUTION_TIMEOUT`, and `THROW_ERR_SCRIPT_EXECUTION_INTERRUPTED` would always be rejected, so for a synchronous loader, they would either have to expose these underlying rejections to users when the loading goes wrong, or be forced to become asynchronous as it cannot catch these errors synchronously and paint it over. i.e. they cannot do something like this:\n\n```js\nfunction syncLoad() {\n  try {\n    mod.evaluate();\n  } catch(e) {  // This allows the user to get the loader errors synchronously\n    if (e.code === 'ERR_VM_MODULE_STATUS' ||\n        e.code === 'ERR_SCRIPT_EXECUTION_INTERRUPTED' ||\n        e.code === 'ERR_SCRIPT_EXECUTION_TIMEOUT') {\n      // fix it up and try again, or error and explain to user what to do\n      // but hide the errors that do not directly come from module code\n      // as implementation detail\n    }\n  }\n  if (mod.status === 'errored') {\n    throw mod.error;  // It's an evaluation error from the module code\n  }\n  return mod.namespace;\n}\n```\n\nOpening a separate issue to discuss if there's another way to make this possible other than just making it throw these loader errors synchronously.","author":{"url":"https://github.com/joyeecheung","@type":"Person","name":"joyeecheung"},"datePublished":"2025-10-13T10:39:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/60242/node/issues/60242"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2f149310-54de-d116-1104-575cff4ed96e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9178:31D4:2120E98:2FEDA7F:6A4D1069
html-safe-nonceca10b728e860cbd2a5b2e35c76b737b93381f0d17adfe5bdd3583886de84d4f6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTc4OjMxRDQ6MjEyMEU5ODoyRkVEQTdGOjZBNEQxMDY5IiwidmlzaXRvcl9pZCI6Ijg0MjE5OTg4MzQxODQxNjM0MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5fbad47b127257dcf0c2998d126d9a71decdafce2f23a5cc423ffc724c1827ab
hovercard-subject-tagissue:3509474946
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/60242/issue_layout
twitter:imagehttps://opengraph.githubassets.com/542ca8b950f4c02db460e226d46db7cd0e9acda2d7d632a3aadb65067bf85ae3/nodejs/node/issues/60242
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/542ca8b950f4c02db460e226d46db7cd0e9acda2d7d632a3aadb65067bf85ae3/nodejs/node/issues/60242
og:image:altThis came up in #60205 (comment) when I was trying to make vm.Module.evaluate() return the module evaluation promise as-is (so synchronously fulfilled for synthetic modules and source text modules ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejoyeecheung
hostnamegithub.com
expected-hostnamegithub.com
Nonebcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c
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
releasefb70bd3c4b2bec429781b65419e912c66e2d5581
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/issues/60242#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F60242
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F60242
Sign up https://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/60242
Reloadhttps://github.com/nodejs/node/issues/60242
Reloadhttps://github.com/nodejs/node/issues/60242
Please reload this pagehttps://github.com/nodejs/node/issues/60242
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/issues/60242
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 957 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
vm.Module.evaluate() morphs loader errors into module evaluation rejectionshttps://github.com/nodejs/node/issues/60242#top
esmIssues and PRs related to the ECMAScript Modules implementation.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22esm%22
vmIssues and PRs related to the vm subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22vm%22
https://github.com/joyeecheung
joyeecheunghttps://github.com/joyeecheung
on Oct 13, 2025https://github.com/nodejs/node/issues/60242#issue-3509474946
#60205 (comment)https://github.com/nodejs/node/pull/60205#discussion_r2423587581
esmIssues and PRs related to the ECMAScript Modules implementation.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22esm%22
vmIssues and PRs related to the vm subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22vm%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.