• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Flags: --expose-internals --no-warnings
2'use strict';
3require('../common');
4
5const { internalBinding } = require('internal/test/binding');
6const { TTY } = internalBinding('tty_wrap');
7const { WriteWrap } = internalBinding('stream_wrap');
8
9const handle = new TTY(1);
10const req = new WriteWrap();
11
12handle.writeBuffer(req, Buffer.from('hello world 1\n'));
13handle.writeBuffer(req, Buffer.from('hello world 2\n'));
14