11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_cirequire('../common'); 31cb0ef41Sopenharmony_ciconst { Writable } = require('stream'); 41cb0ef41Sopenharmony_ciconst { Console } = require('console'); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciconst stream = new Writable({ 71cb0ef41Sopenharmony_ci write() { 81cb0ef41Sopenharmony_ci throw null; // eslint-disable-line no-throw-literal 91cb0ef41Sopenharmony_ci } 101cb0ef41Sopenharmony_ci}); 111cb0ef41Sopenharmony_ci 121cb0ef41Sopenharmony_ciconst console = new Console({ stdout: stream }); 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ciconsole.log('test'); // Should not throw 15