Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fatal: function fatal() {
// simulate a bug
process.nextTick(function throwIt() {
throw new Error('bug in logger implementation');
});
}
};
destroy () {
// remove the element
let destroy = () => {
this.items = null;
this.treeView = null;
this.observer.disconnect();
this.observer = null;
this.unbindEvent();
this.element.remove();
};
if (this.creating) {
process.nextTick(() => {
destroy();
});
} else {
destroy();
}
}
function endReadable(stream) {
var state = stream._readableState;
// If we get here before consuming all the bytes, then that is a
// bug in node. Should never happen.
if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream');
if (!state.endEmitted) {
state.ended = true;
nextTick(endReadableNT, state, stream);
}
}
reporter.once('reportPostStatsd', function onEvent() {
process.nextTick(function advance() {
timer.advance(10);
});
});
function resume(stream, state) {
if (!state.resumeScheduled) {
state.resumeScheduled = true;
nextTick(resume_, stream, state);
}
}
function emitReadable(stream) {
var state = stream._readableState;
state.needReadable = false;
if (!state.emittedReadable) {
debug('emitReadable', state.flowing);
state.emittedReadable = true;
if (state.sync) nextTick(emitReadable_, stream);else emitReadable_(stream);
}
}
ensureBodyComponent: function(route, component) {
process.nextTick(function() {
this.setState({
route: route,
bodyComponent: component
});
}.bind(this));
},
function done(err) {
function end() {
if (cb) cb(err, results);
}
if (isSync) process.nextTick(end);
else end();
}
set: function set(opts) {
mutableExtend(mutableConfig, opts);
if ('timeout' in opts) {
printHandle.INTERVAL_HANDLE_TIMEOUT = opts.timeout +
Math.floor(Math.random() * 100);
}
return this;
},
printHandles: function $printHandles() {
printHandles(console, mutableConfig);
}
};
process.nextTick(function onTick() {
var timeoutHandle = setTimeout(function handleInspectionLoop() {
printHandles(console, mutableConfig);
timeoutHandle = setTimeout(handleInspectionLoop,
printHandle.INTERVAL_HANDLE_TIMEOUT);
timeoutHandle.unref();
}, printHandle.INTERVAL_HANDLE_TIMEOUT);
timeoutHandle.unref();
});