Title: Make native module rerequirable. · Issue #5016 · nodejs/node · GitHub
Open Graph Title: Make native module rerequirable. · Issue #5016 · nodejs/node
X Title: Make native module rerequirable. · Issue #5016 · nodejs/node
Description: I'm a node embedder, using node v4.2.4 In my situation, sometimes, I need to unrequire module.(Which I delete module cache in require.cache). sometimes, I need to refresh the global object to clean the symbol. In those case, the .node li...
Open Graph Description: I'm a node embedder, using node v4.2.4 In my situation, sometimes, I need to unrequire module.(Which I delete module cache in require.cache). sometimes, I need to refresh the global object to clean...
X Description: I'm a node embedder, using node v4.2.4 In my situation, sometimes, I need to unrequire module.(Which I delete module cache in require.cache). sometimes, I need to refresh the global object to c...
Opengraph URL: https://github.com/nodejs/node/issues/5016
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make native module rerequirable.","articleBody":"I'm a node embedder, using node v4.2.4\n\nIn my situation,\nsometimes, I need to unrequire module.(Which I delete module cache in require.cache).\nsometimes, I need to refresh the global object to clean the symbol.\n\nIn those case,\nthe .node library probably loaded before. after unrequire module or refresh global object, I got error like 'non self-register'.\n\nThe pure JS module and the buildin module are FINE.\n\nSimple test code:\n\n```\nrequire('iconv');\ndelete require.cache[\"C:\\\\Program Files (x86)\\\\nodejs\\\\node_modules\\\\iconv\\\\lib\\\\iconv.js\"];\ndelete require.cache[\"C:\\Program Files (x86)\\nodejs\\node_modules\\iconv\\build\\Release\\\\iconv.node\"];\nrequire('iconv');\n```\n","author":{"url":"https://github.com/waaaagit","@type":"Person","name":"waaaagit"},"datePublished":"2016-02-01T02:11:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/5016/node/issues/5016"}
| 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:7f793b3f-b177-aee2-9914-ec780507a46b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7D0:3C6F7B:7102E76:98C9B24:6A5E2F42 |
| html-safe-nonce | bc2e73ebd8f2e4c00a57a63eed311ed13984767e50c7385af26066088e9a1594 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0QwOjNDNkY3Qjo3MTAyRTc2Ojk4QzlCMjQ6NkE1RTJGNDIiLCJ2aXNpdG9yX2lkIjoiNDI1MDkyNzg5NzEzMjI4MTY2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1d001fcac404090e0e7108a296df2580eab8d16967b97a2d25eac7e98ce88ffa |
| hovercard-subject-tag | issue:130232338 |
| 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/5016/issue_layout |
| twitter:image | https://opengraph.githubassets.com/17dba7ecf3746dc9baec16cb093547f3d1aff5c509128869b2b8d2c8dd017146/nodejs/node/issues/5016 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/17dba7ecf3746dc9baec16cb093547f3d1aff5c509128869b2b8d2c8dd017146/nodejs/node/issues/5016 |
| og:image:alt | I'm a node embedder, using node v4.2.4 In my situation, sometimes, I need to unrequire module.(Which I delete module cache in require.cache). sometimes, I need to refresh the global object to clean... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | waaaagit |
| hostname | github.com |
| expected-hostname | github.com |
| None | 621588b5bccbeb4b6fab0bb72b5de86200d5e6df07dbdabbdb667c8649f6e38d |
| 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 | 14f1e1fce2dc2d662cbf7ef602c59756c2283f9e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width