workaround for node 9 segfaulting when running without breakpoints

This commit is contained in:
nightwing 2018-02-24 01:45:11 +04:00
parent 873afe44b4
commit 6663329c3f

View File

@ -80,7 +80,14 @@ define(function(require, exports, module) {
}
var list = breakpoints.slice(0);
var retries = 0;
if (list.length == 0) {
// node v9.5 segfaults when there are no breakpoints
list.push({
path: "_c9_node_segfault_workaround_",
line: 100,
enabled: true,
});
}
listBreakpoints(function handleBps(err, remoteBreakpoints) {
if (err) return callback(err);