stream: hide afterWriteTickInfo property
Pull request https://github.com/nodejs/node/pull/30710 has introduced afterWriteTickInfo
property for optimizing synchronous write completions and it is backported to v12.x as a semver-minor release, but it breaks use case of JSON stringifying writable stream object. This PR hides that property behind a symbol.
Fixes https://github.com/nodejs/node/issues/31277
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines