From f01518edfd83e2235d84485d87621e61f675b4a7 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 23 Oct 2018 08:23:02 +0200 Subject: src: improve StreamBase write throughput Improve performance by transferring information about write status to JS through an `AliasedBuffer`, rather than object properties set from C++. PR-URL: https://github.com/nodejs/node/pull/23843 Reviewed-By: James M Snell Reviewed-By: Anatoli Papirovski --- test/sequential/test-async-wrap-getasyncid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sequential') diff --git a/test/sequential/test-async-wrap-getasyncid.js b/test/sequential/test-async-wrap-getasyncid.js index 5ff8760daa..851a0b3fbc 100644 --- a/test/sequential/test-async-wrap-getasyncid.js +++ b/test/sequential/test-async-wrap-getasyncid.js @@ -239,7 +239,7 @@ if (common.hasCrypto) { // eslint-disable-line node-core/crypto-check const err = handle.writeLatin1String(wreq, 'hi'.repeat(100000)); if (err) throw new Error(`write failed: ${getSystemErrorName(err)}`); - if (!wreq.async) { + if (!stream_wrap.streamBaseState[stream_wrap.kLastWriteWasAsync]) { testUninitialized(wreq, 'WriteWrap'); // Synchronous finish. Write more data until we hit an // asynchronous write. -- cgit v1.2.3