dominictarr/JSONStream — pull request #18 by santigimeno (2012-09-07 11:21:10+00:00)
Title: Add missing Stream destroy method

With the new test case, I was receiving this error:

stream.js:74
dest.destroy();
^
TypeError: Object # has no method 'destroy'
at Socket.onclose (stream.js:74:10)
at Socket.EventEmitter.emit (events.js:115:20)
at Socket._destroy.destroyed (net.js:356:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)

After adding the destroy method the test passes