repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update spell words
[poolifier.git]
/
tests
/
worker-files
/
thread
/
errorWorker.js
diff --git
a/tests/worker-files/thread/errorWorker.js
b/tests/worker-files/thread/errorWorker.js
index cc13c050ca8cd07d485a06e1faa1ba2239c1540f..c33dc1f0eb5e7c454a8ae355fe0c997761c32c56 100644
(file)
--- a/
tests/worker-files/thread/errorWorker.js
+++ b/
tests/worker-files/thread/errorWorker.js
@@
-1,8
+1,8
@@
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
'use strict'
const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
-function error (
data
) {
- throw new Error(
data
)
+function error () {
+ throw new Error(
'Error Message from ThreadWorker'
)
}
module.exports = new ThreadWorker(error, {
}
module.exports = new ThreadWorker(error, {