in lib/request.js [187:200]
emitEvent: async function emit(eventName, args, done) {
if (typeof args === 'function') { done = args; args = null; }
if (!done) done = function () { };
if (!args) args = this.eventParameters(eventName, this.response);
var origEmit = TableStore.SequentialExecutor.prototype.emit;
try {
await origEmit.call(this, eventName, args, async (err) => {
if (err) this.response.error = err;
done.call(this, err);
});
} catch (err) {
if (done) done(err);
}
},