Browse Source

Throw since async png streaming is not yet implemented

v1.x
Tj Holowaychuk 15 years ago
parent
commit
feafe2b999
  1. 1
      lib/pngstream.js

1
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) {

Loading…
Cancel
Save