From 973f324463a91721cc8a1158a5ab10ad0dd69019 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 29 Oct 2019 15:15:36 +0100 Subject: child_process,cluster: allow using V8 serialization API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an `serialization` option that allows child process IPC to use the (typically more powerful) V8 serialization API. Fixes: https://github.com/nodejs/node/issues/10965 PR-URL: https://github.com/nodejs/node/pull/30162 Reviewed-By: Colin Ihrig Reviewed-By: Gus Caplan Reviewed-By: David Carlier Reviewed-By: Michaƫl Zasso --- lib/internal/cluster/master.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/internal/cluster') diff --git a/lib/internal/cluster/master.js b/lib/internal/cluster/master.js index a881021c5e..005de8aa1b 100644 --- a/lib/internal/cluster/master.js +++ b/lib/internal/cluster/master.js @@ -130,6 +130,7 @@ function createWorkerProcess(id, env) { return fork(cluster.settings.exec, cluster.settings.args, { cwd: cluster.settings.cwd, env: workerEnv, + serialization: cluster.settings.serialization, silent: cluster.settings.silent, windowsHide: cluster.settings.windowsHide, execArgv: execArgv, -- cgit v1.2.3