Title: Using experimental ESM HTTPS imports inside experimental `vm.Module` crashes · Issue #43288 · nodejs/node · GitHub
Open Graph Title: Using experimental ESM HTTPS imports inside experimental `vm.Module` crashes · Issue #43288 · nodejs/node
X Title: Using experimental ESM HTTPS imports inside experimental `vm.Module` crashes · Issue #43288 · nodejs/node
Description: Version 18.2.0 Platform Darwin Ronalds-iMac.local 20.6.0 Darwin Kernel Version 20.6.0: Tue Apr 19 21:04:45 PDT 2022; root:xnu-7195.141.29~1/RELEASE_X86_64 x86_64 Subsystem vm and esm What steps will reproduce the bug? Within a vm module ...
Open Graph Description: Version 18.2.0 Platform Darwin Ronalds-iMac.local 20.6.0 Darwin Kernel Version 20.6.0: Tue Apr 19 21:04:45 PDT 2022; root:xnu-7195.141.29~1/RELEASE_X86_64 x86_64 Subsystem vm and esm What steps wil...
X Description: Version 18.2.0 Platform Darwin Ronalds-iMac.local 20.6.0 Darwin Kernel Version 20.6.0: Tue Apr 19 21:04:45 PDT 2022; root:xnu-7195.141.29~1/RELEASE_X86_64 x86_64 Subsystem vm and esm What steps wil...
Opengraph URL: https://github.com/nodejs/node/issues/43288
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using experimental ESM HTTPS imports inside experimental `vm.Module` crashes","articleBody":"### Version\r\n\r\n18.2.0\r\n\r\n### Platform\r\n\r\nDarwin Ronalds-iMac.local 20.6.0 Darwin Kernel Version 20.6.0: Tue Apr 19 21:04:45 PDT 2022; root:xnu-7195.141.29~1/RELEASE_X86_64 x86_64\r\n\r\n### Subsystem\r\n\r\nvm and esm\r\n\r\n### What steps will reproduce the bug?\r\n\r\nWithin a vm module attempt an esm https import.\r\n\r\nRun with both flags `--experimental-vm-modules --experimental-network-imports`\r\n\r\nFull repo cases https://github.com/Pyrolistical/vm-modules-network-imports-crash\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\nAlways\r\n\r\n### What is the expected behavior?\r\n\r\nesm https imports work within vm module\r\n\r\n### What do you see instead?\r\n\r\ncrashes\r\n```\r\nnode:internal/vm/module:313\r\n if (module[kWrap] === undefined) {\r\n ^\r\n\r\nTypeError: Cannot read properties of undefined (reading 'Symbol(kWrap)')\r\n at ModuleWrap.\u003canonymous\u003e (node:internal/vm/module:313:19)\r\n at async Promise.all (index 0)\r\n at async SourceTextModule.\u003ccomputed\u003e (node:internal/vm/module:330:11)\r\n at async SourceTextModule.link (node:internal/vm/module:197:5)\r\n at async file:///Users/rchen/dev/projects/github.com/Pyrolistical/vm-modules-plus-network-imports/vm-module-network-imports.js:13:1\r\n```\r\n\r\n### Additional information\r\n\r\n_No response_","author":{"url":"https://github.com/Pyrolistical","@type":"Person","name":"Pyrolistical"},"datePublished":"2022-06-01T20:31:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/43288/node/issues/43288"}
| 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:d4d68e4d-e01a-c8ce-668e-2fcde50a74e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD92:2D618B:73CBF9:9C5E66:6A4D4403 |
| html-safe-nonce | 481d39cb60613589c5aec22c09ee9a64b8a43ccc916de5d42098193bed4b188b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDkyOjJENjE4Qjo3M0NCRjk6OUM1RTY2OjZBNEQ0NDAzIiwidmlzaXRvcl9pZCI6IjQ5OTcxMDkwMTk0ODQ5NjM4NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3d7d75d833d0265233aea17edf67c498e1c5f36b2b7f4d6c9e2fb2bcbb1cca17 |
| hovercard-subject-tag | issue:1256971724 |
| 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/43288/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a8c2cdfce04803ea07d0b5af266bb28d7a22273901761e33a4b825f1a47af0f3/nodejs/node/issues/43288 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a8c2cdfce04803ea07d0b5af266bb28d7a22273901761e33a4b825f1a47af0f3/nodejs/node/issues/43288 |
| og:image:alt | Version 18.2.0 Platform Darwin Ronalds-iMac.local 20.6.0 Darwin Kernel Version 20.6.0: Tue Apr 19 21:04:45 PDT 2022; root:xnu-7195.141.29~1/RELEASE_X86_64 x86_64 Subsystem vm and esm What steps wil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Pyrolistical |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width