A Twitch.tv viewer reward and games system.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
505 B

  1. 'use strict';
  2. var Node = require('./node');
  3. /**
  4. * Initialize a `Comment` with the given `val`, optionally `buffer`,
  5. * otherwise the comment may render in the output.
  6. *
  7. * @param {String} val
  8. * @param {Boolean} buffer
  9. * @api public
  10. */
  11. var Comment = module.exports = function Comment(val, buffer) {
  12. this.val = val;
  13. this.buffer = buffer;
  14. };
  15. // Inherit from `Node`.
  16. Comment.prototype = Object.create(Node.prototype);
  17. Comment.prototype.constructor = Comment;
  18. Comment.prototype.type = 'Comment';