From: Jérôme Benoit Date: Mon, 26 Jun 2023 11:30:18 +0000 (+0200) Subject: refactor: strict mode in js files X-Git-Tag: v2.6.4~13 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=589f0f1c052a4f0666cb8297e4d4a4f17a680a60;p=poolifier.git refactor: strict mode in js files Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/versus-external-pools/dynamic-worker-nodes.js b/benchmarks/versus-external-pools/dynamic-worker-nodes.js index fffa5594..6a55aaf9 100644 --- a/benchmarks/versus-external-pools/dynamic-worker-nodes.js +++ b/benchmarks/versus-external-pools/dynamic-worker-nodes.js @@ -1,3 +1,4 @@ +'use strict' // IMPORT LIBRARIES const WorkerNodes = require('worker-nodes') // FINISH IMPORT LIBRARIES diff --git a/benchmarks/versus-external-pools/fixed-worker-nodes.js b/benchmarks/versus-external-pools/fixed-worker-nodes.js index 641afd77..e70e61c8 100644 --- a/benchmarks/versus-external-pools/fixed-worker-nodes.js +++ b/benchmarks/versus-external-pools/fixed-worker-nodes.js @@ -1,3 +1,4 @@ +'use strict' // IMPORT LIBRARIES const WorkerNodes = require('worker-nodes') // FINISH IMPORT LIBRARIES diff --git a/benchmarks/versus-external-pools/functions/function-to-bench.js b/benchmarks/versus-external-pools/functions/function-to-bench.js index 74a07d1e..6a05cb62 100644 --- a/benchmarks/versus-external-pools/functions/function-to-bench.js +++ b/benchmarks/versus-external-pools/functions/function-to-bench.js @@ -1,3 +1,4 @@ +'use strict' /** * The worker function to execute during pools benchmarks. * NOTE: This function requires to be self-contained, thread-safe and re-entrant. diff --git a/benchmarks/versus-external-pools/workers/worker-nodes/function-to-bench-worker.js b/benchmarks/versus-external-pools/workers/worker-nodes/function-to-bench-worker.js index 3f3fc231..9fa8b472 100644 --- a/benchmarks/versus-external-pools/workers/worker-nodes/function-to-bench-worker.js +++ b/benchmarks/versus-external-pools/workers/worker-nodes/function-to-bench-worker.js @@ -1,2 +1,3 @@ +'use strict' const functionToBench = require('../../functions/function-to-bench') module.exports = functionToBench