You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
typesetting/pitfall/pdfkit/node_modules/browserify/test/bin_tr_error/tr.js

13 lines
287 B
JavaScript

var through = require('through');
module.exports = function (file, opts) {
var data = '';
return through(write, end);
function write (buf) { data += buf }
function end () {
this.emit('error', new Error('there was error'))
this.queue(null);
}
};