-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v8.0.0 — zlib.DeflateRaw only extensible via class keyword #13358
Comments
This seems to be happening because
|
/cc @jasnell |
I'm just getting going this morning so I'll have a look a bit more in depth soon, but does this break an existing module or does it just not work as it was expected? |
Yes, completely. I have a quick fix ready to go, a PR is coming soon. |
Ok. Sigh, we should get those into citgm then. |
Fixes internal/util createClassWrapper to support inheritance without using classes. The constructor now needs to be defined using a Symbol. Fixes: nodejs#13358
Using ES6 Classes broke userland code. Revert back to functions. Fixes: nodejs#13358 Refs: nodejs#13370
@mcollina I'll give the module I was using a go with the PR in a few hours. |
Using ES6 Classes broke userland code. Revert back to functions. PR-URL: #13374 Fixes: #13358 Ref: #13370 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Extending
zlib.DeflateRaw
via non-class-keyword doesn't work. You can see this in action with this example:The above prints out
NotInitialized { prop: true }
What I expected it to do, was what this example does:
Not doing this initialization means that many stream operations result in crashes. (For example,
pipe
.)This shows up in the real world with crc32-stream.
The text was updated successfully, but these errors were encountered: