mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
feat: add node 16 (#9847)
* feat: add node 16
* fix: check errors in fork
* test: add use-spawn
* test: another test
* Revert "test: another test"
This reverts commit 606efe26fe.
* test: another test
* fix: lint
* fix: remove spawn-wrap
* test: comment out plugin installs
* fix: lint
* test: uncomment all tests except npm i
* fix: lint
* test: bring back tests
* test: remove leftover override
This commit is contained in:
committed by
GitHub
parent
67cb249122
commit
d27c9696e3
@@ -14,6 +14,10 @@ function forkChild(message, callback) {
|
||||
child.on('message', (msg) => {
|
||||
callback(msg.err ? new Error(msg.err) : null, msg.result);
|
||||
});
|
||||
child.on('error', (err) => {
|
||||
console.error(err.stack);
|
||||
callback(err);
|
||||
});
|
||||
|
||||
child.send(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user