From dbb0a4ccbefcb22e09a4720134f971ac774c84f2 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 12 Jan 2013 05:17:17 -0500 Subject: [PATCH] add additional assertion --- lib/protocol.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/protocol.js b/lib/protocol.js index b660973..46725f1 100644 --- a/lib/protocol.js +++ b/lib/protocol.js @@ -1163,6 +1163,7 @@ LongWriter.prototype.write = function(buffer, offset) { function get(packetId, toServer) { var packetInfo = packets[packetId]; + assert.ok(packetInfo, "unrecognized packet id: " + packetId); return Array.isArray(packetInfo) ? packetInfo : toServer ?