Skip to content

Commit

Permalink
lib: add deserialization callbacks for worker threads
Browse files Browse the repository at this point in the history
  • Loading branch information
debadree25 committed Dec 20, 2022
1 parent 7738844 commit f33f3d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/internal/main/worker_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ port.on('message', (message) => {
require('internal/process/policy').setup(manifestSrc, manifestURL);
}
setupUserModules();


require('internal/v8/startup_snapshot').runDeserializeCallbacks();

if (!hasStdin)
process.stdin.push(null);

Expand Down
1 change: 0 additions & 1 deletion lib/internal/process/pre_execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ function prepareExecution(options) {
// (including preload modules).
initializeClusterIPC();

// TODO(joyeecheung): do this for worker threads as well.
require('internal/v8/startup_snapshot').runDeserializeCallbacks();
} else {
assert(!internalBinding('worker').isMainThread);
Expand Down

0 comments on commit f33f3d9

Please sign in to comment.