From feafe2b9995a62692f19ecdd70da28317c13363c Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Mon, 1 Nov 2010 10:35:20 -0700 Subject: [PATCH] Throw since async png streaming is not yet implemented --- lib/pngstream.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pngstream.js b/lib/pngstream.js index 22df95e..a897abc 100644 --- a/lib/pngstream.js +++ b/lib/pngstream.js @@ -41,6 +41,7 @@ var PNGStream = module.exports = function PNGStream(canvas, sync) { : 'streamPNG'; this.sync = sync; this.canvas = canvas; + if ('streamPNG' == method) throw new Error('async png streaming not yet implemented'); process.nextTick(function(){ canvas[method](function(err, chunk, len){ if (err) {