zlib: revert back to Functions
Using ES6 Classes broke userland code. Revert back to functions. This is an alternative to https://github.com/nodejs/node/pull/13370
/cc @mcollina @addaleax @watilde
Technically this would be semver-major, but it fixes a regression caused by a semver-major in 8.x, so it would be semver-patch.
Fixes: https://github.com/nodejs/node/issues/13358 Refs: https://github.com/nodejs/node/pull/13370
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
zlib