-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.
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 library probably loaded before. after unrequire module or refresh global object, I got error like 'non self-register'.
The pure JS module and the buildin module are FINE.
Simple test code:
require('iconv');
delete require.cache["C:\\Program Files (x86)\\nodejs\\node_modules\\iconv\\lib\\iconv.js"];
delete require.cache["C:\Program Files (x86)\nodejs\node_modules\iconv\build\Release\\iconv.node"];
require('iconv');
sv-vv
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.