From 5256398e4021ebc54c2dbb0f0163874d54054458 Mon Sep 17 00:00:00 2001 From: juanelas Date: Tue, 22 Sep 2020 23:40:00 +0200 Subject: [PATCH] fixes #8 --- lib/index.node.js | 2 -- src/js/index.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/index.node.js b/lib/index.node.js index 79a2112..ae5bc8e 100644 --- a/lib/index.node.js +++ b/lib/index.node.js @@ -827,8 +827,6 @@ let _useWorkers = false // The following is just to check whether we can use wor This node version doesn't support worker_threads. You should enable them in order to greatly speedup the generation of big prime numbers. · With Node >=11 it is enabled by default (consider upgrading). · With Node 10, starting with 10.5.0, you can enable worker_threads at runtime executing node --experimental-worker `) - /* istanbul ignore next */ - _useWorkers = true } } /* eslint-enable no-lone-blocks */ diff --git a/src/js/index.js b/src/js/index.js index 385b8ed..c662dd5 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -676,8 +676,6 @@ if (!process.browser) { // Node.js This node version doesn't support worker_threads. You should enable them in order to greatly speedup the generation of big prime numbers. · With Node >=11 it is enabled by default (consider upgrading). · With Node 10, starting with 10.5.0, you can enable worker_threads at runtime executing node --experimental-worker `) - /* istanbul ignore next */ - _useWorkers = true } } else { // Native JS if (self.Worker) _useWorkers = true