workers: fix ErrorResultPacket.
This commit is contained in:
parent
a91bd5c958
commit
411db44a76
@ -252,6 +252,13 @@ Object.setPrototypeOf(ErrorResultPacket.prototype, ErrorPacket.prototype);
|
|||||||
|
|
||||||
ErrorResultPacket.prototype.cmd = packetTypes.ERRORRESULT;
|
ErrorResultPacket.prototype.cmd = packetTypes.ERRORRESULT;
|
||||||
|
|
||||||
|
ErrorResultPacket.fromRaw = function fromRaw(data) {
|
||||||
|
const packet = new ErrorResultPacket();
|
||||||
|
const p = ErrorPacket.fromRaw(data);
|
||||||
|
packet.error = p.error;
|
||||||
|
return packet;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CheckPacket
|
* CheckPacket
|
||||||
* @constructor
|
* @constructor
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user