wuhkuh / protocol

Protocol generator / parser for Node.JS
MIT License
4 stars 3 forks source link

HACK in generate.js #3

Closed wuhkuh closed 7 years ago

wuhkuh commented 7 years ago

While this works:

  array.push('') // HACK, to fix final run through forEach
  array.forEach(function (element, index) {
    if (element instanceof Buffer || index === array.length - 1) {

It needs to be patched, unless performance tells us not to do so.

wuhkuh commented 7 years ago

Closed in #8