diff options
Diffstat (limited to 'tools/eslint/node_modules/parse5/lib/sax/dev_null_stream.js')
-rw-r--r-- | tools/eslint/node_modules/parse5/lib/sax/dev_null_stream.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/eslint/node_modules/parse5/lib/sax/dev_null_stream.js b/tools/eslint/node_modules/parse5/lib/sax/dev_null_stream.js new file mode 100644 index 00000000000..96bdcf33120 --- /dev/null +++ b/tools/eslint/node_modules/parse5/lib/sax/dev_null_stream.js @@ -0,0 +1,14 @@ +'use strict'; + +var WritableStream = require('stream').Writable, + util = require('util'); + +var DevNullStream = module.exports = function () { + WritableStream.call(this); +}; + +util.inherits(DevNullStream, WritableStream); + +DevNullStream.prototype._write = function (chunk, encoding, cb) { + cb(); +}; |