fixes #8
This commit is contained in:
parent
0603d4cfd7
commit
5256398e40
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue