From 6998591be761d29057b3c75cc084d0b7521a5c39 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 29 Oct 2017 19:54:45 -0700 Subject: [PATCH] test,net: remove scatological terminology PR-URL: https://github.com/nodejs/node/pull/16599 Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Anatoli Papirovski --- lib/net.js | 2 +- test/parallel/test-async-wrap-uncaughtexception.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/net.js b/lib/net.js index facf5d0d6b7bd4..78e12fac2084c4 100644 --- a/lib/net.js +++ b/lib/net.js @@ -321,7 +321,7 @@ function afterShutdown(status, handle, req) { // if the writable side has ended already, then clean everything // up. function onSocketEnd() { - // XXX Should not have to do as much crap in this function. + // XXX Should not have to do as much in this function. // ended should already be true, since this is called *after* // the EOF errno and onread has eof'ed debug('onSocketEnd', this._readableState); diff --git a/test/parallel/test-async-wrap-uncaughtexception.js b/test/parallel/test-async-wrap-uncaughtexception.js index 9427e2fb787a9b..37557b4aacc341 100644 --- a/test/parallel/test-async-wrap-uncaughtexception.js +++ b/test/parallel/test-async-wrap-uncaughtexception.js @@ -42,5 +42,5 @@ process.on('uncaughtException', common.mustCall(() => { require('crypto').randomBytes(1, common.mustCall(() => { assert.strictEqual(call_id, async_hooks.executionAsyncId()); call_log[1]++; - throw new Error('ah crap'); + throw new Error(); }));