diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-10-06 18:24:08 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-10-12 14:58:35 -0700 |
commit | b2d8ae0a1401ad2730219dbb0da489d63a11d924 (patch) | |
tree | 57bd97f988b86152379c53f93d9dcde5dd1aef6e /test/parallel/test-zlib-bytes-read.js | |
parent | 09c42f45f652ffef2964e721d3b6a20fbefe4817 (diff) | |
download | android-node-v8-b2d8ae0a1401ad2730219dbb0da489d63a11d924.tar.gz android-node-v8-b2d8ae0a1401ad2730219dbb0da489d63a11d924.tar.bz2 android-node-v8-b2d8ae0a1401ad2730219dbb0da489d63a11d924.zip |
zlib: move `bytesRead` accessors to runtime deprecation
This paves way for making `bytesRead` consistent with all other
Node.js streams that provide a property with this name.
PR-URL: https://github.com/nodejs/node/pull/23308
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-zlib-bytes-read.js')
-rw-r--r-- | test/parallel/test-zlib-bytes-read.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/parallel/test-zlib-bytes-read.js b/test/parallel/test-zlib-bytes-read.js index 493478e78d..e8983efc45 100644 --- a/test/parallel/test-zlib-bytes-read.js +++ b/test/parallel/test-zlib-bytes-read.js @@ -21,6 +21,12 @@ function createWriter(target, buffer) { return writer; } +common.expectWarning( + 'DeprecationWarning', + 'zlib.bytesRead is deprecated and will change its meaning in the ' + + 'future. Use zlib.bytesWritten instead.', + 'DEP0108'); + for (const method of [ ['createGzip', 'createGunzip', false], ['createGzip', 'createUnzip', false], |