in lib/iotjobs/iotjobsclient.ts [27:35]
constructor(message?: string, readonly payload?: mqtt.Payload) {
// 'Error' breaks JS prototype chain when instantiated
super(message);
// restore prototype chain
const myProto = new.target.prototype;
if (Object.setPrototypeOf) { Object.setPrototypeOf(this, myProto); }
else { this.prototype = myProto; }
}