Title: Link modules with paths in module.link(linker) · Issue #35848 · nodejs/node · GitHub
Open Graph Title: Link modules with paths in module.link(linker) · Issue #35848 · nodejs/node
X Title: Link modules with paths in module.link(linker) · Issue #35848 · nodejs/node
Description: https://nodejs.org/api/vm.html#vm_module_link_linker Now we can only link "standard" modules with functions combined with SyntheticModules, like this: await module.link( function( spec ) { return new Promise( async function( resolve, rej...
Open Graph Description: https://nodejs.org/api/vm.html#vm_module_link_linker Now we can only link "standard" modules with functions combined with SyntheticModules, like this: await module.link( function( spec ) { return n...
X Description: https://nodejs.org/api/vm.html#vm_module_link_linker Now we can only link "standard" modules with functions combined with SyntheticModules, like this: await module.link( function( spec ) ...
Opengraph URL: https://github.com/nodejs/node/issues/35848
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Link modules with paths in module.link(linker)","articleBody":"https://nodejs.org/api/vm.html#vm_module_link_linker\r\n\r\nNow we can only link \"standard\" modules with functions combined with SyntheticModules, like this:\r\n\r\n```\r\nawait module.link( function( spec ) {\r\n\t\r\n return new Promise( async function( resolve, reject ) {\r\n\t\r\n\tconst mod = await import( spec );\r\n resolve( new vm.SyntheticModule( [ 'default' ], function() {\r\n\r\n this.setExport( 'default', mod.default );\r\n }, { context } ) );\r\n } )\r\n} );\r\n```","author":{"url":"https://github.com/lacmuch","@type":"Person","name":"lacmuch"},"datePublished":"2020-10-28T12:11:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/35848/node/issues/35848"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0eb83471-194c-5e17-5e73-6f2c503b7b66 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DABA:76C74:D5169E:133B1F8:6A4CC50C |
| html-safe-nonce | ef79380d6c62276fb6dc3e9dae17ab6c91643aebeaae82e8ba6127bafdf7c6e9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUJBOjc2Qzc0OkQ1MTY5RToxMzNCMUY4OjZBNENDNTBDIiwidmlzaXRvcl9pZCI6IjgxOTA2MjYwOTgzODUzMDY4OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 76d3d34767f16576814e63644196cc650b5c8b93b75d8f81d6f7af528cfb562c |
| hovercard-subject-tag | issue:731385823 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/35848/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eaa615abfd80579e83813c43e403a3ed88780aecd4a3e88b76061304d4b920df/nodejs/node/issues/35848 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eaa615abfd80579e83813c43e403a3ed88780aecd4a3e88b76061304d4b920df/nodejs/node/issues/35848 |
| og:image:alt | https://nodejs.org/api/vm.html#vm_module_link_linker Now we can only link "standard" modules with functions combined with SyntheticModules, like this: await module.link( function( spec ) { return n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lacmuch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d0da0eb92994395299ed4450bf67b0373005be36 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width