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(); }));