function runRichards() { queue = new Packet; Packet(queue, ID_DEVICE_A, KIND_DEVICE); new Packet; } var ID_DEVICE_A = 4; var KIND_DEVICE = 0; Packet = function (queue) { this.link = null if (queue == null) return; var peek, next = queue; while ((peek = next.link) != null) ID_HANDLER_B }; runRichards()