From d8d2d23174977ecffac97393f711dee6c11ca5a5 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 22 Jan 2019 16:48:45 +0100 Subject: [PATCH 1/2] test: remove unused uncaughtException handler This has been unused since cbc3ef64ceaf95ec1. Refs: https://github.com/nodejs/node/pull/23053 --- test/pseudo-tty/test-tty-stdout-end.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/pseudo-tty/test-tty-stdout-end.js b/test/pseudo-tty/test-tty-stdout-end.js index 2ec7ca9114db6f..c11f7f4eb76a40 100644 --- a/test/pseudo-tty/test-tty-stdout-end.js +++ b/test/pseudo-tty/test-tty-stdout-end.js @@ -1,10 +1,4 @@ 'use strict'; const common = require('../common'); -process.on('uncaughtException', common.expectsError({ - code: 'ERR_STDOUT_CLOSE', - type: Error, - message: 'process.stdout cannot be closed' -})); - process.stdout.end(); From 5067d209c322714437cd5c1395554004767fdd0a Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Sun, 27 Jan 2019 16:26:04 +0100 Subject: [PATCH 2/2] fixup! test: remove unused uncaughtException handler Co-Authored-By: addaleax --- test/pseudo-tty/test-tty-stdout-end.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pseudo-tty/test-tty-stdout-end.js b/test/pseudo-tty/test-tty-stdout-end.js index c11f7f4eb76a40..a19682a36df7a6 100644 --- a/test/pseudo-tty/test-tty-stdout-end.js +++ b/test/pseudo-tty/test-tty-stdout-end.js @@ -1,4 +1,4 @@ 'use strict'; -const common = require('../common'); +require('../common'); process.stdout.end();