Skip to content

Commit 6cbdc0b

Browse files
committed
fix child_process
1 parent 5a2251c commit 6cbdc0b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

libs/core/workerMgr.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
module.exports = workerMgr;
2-
var spawn = require("child_process").spawn;
32
var eom = "\x03";
43
var eom1 = "\x0e";
54
var eom2 = "\x0f";
65
var CSVError = require('./CSVError');
76
function workerMgr() {
8-
7+
var spawn = require("child_process").spawn;
98
var exports = {
109
initWorker: initWorker,
1110
sendWorker: sendWorker,

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,5 +234,8 @@
234234
"test": "mocha ./test -R spec",
235235
"test-debug": "mocha debug ./test -R spec",
236236
"test-all": "mocha ./test -R spec && CSV_WORKER=3 mocha ./test -R spec "
237+
},
238+
"browser":{
239+
"child_process":false
237240
}
238241
}

0 commit comments

Comments
 (0)