From d1f5c06e63abb879689db82b781fb80280b704be Mon Sep 17 00:00:00 2001 From: muji Date: Tue, 7 Feb 2017 16:21:11 +0800 Subject: [PATCH] Comment on call to deserialize(). --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 630095b..d09f770 100644 --- a/index.js +++ b/index.js @@ -29,6 +29,10 @@ function Render(opts) { function render(chunk, encoding, cb) { if(!Node.is(chunk, Node.EOF)) { + /* + * this caters for when a stream is being piped directly and + * has not been deserialized to a real AST node + */ if(!chunk._type) { chunk = Node.deserialize(chunk); }