-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix SPDY fails in node >= 11.1.0 #1660
Conversation
In node v11+: ``` util.js:305 throw new ERR_INVALID_ARG_TYPE('superCtor.prototype', ^ TypeError [ERR_INVALID_ARG_TYPE]: The "superCtor.prototype" property must be of type Object. Received type undefined ```
|
About it: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need add tests
Codecov Report
@@ Coverage Diff @@
## master #1660 +/- ##
==========================================
- Coverage 75.12% 75.08% -0.05%
==========================================
Files 18 18
Lines 591 590 -1
Branches 171 171
==========================================
- Hits 444 443 -1
Misses 113 113
Partials 34 34
Continue to review full report at Codecov.
|
Also please accept CLA |
t.js:
You can run it ( About: spdy-http2/node-spdy#350 |
😄 |
@yi-ge looks you catch the bug in nodejs 😄 Can you create issue in |
@evilebottnawi Thank you. |
Strange can't reproducible locally on latest nodejs |
@evilebottnawi sdpy v4.0? Node.js 11.9.0, spdy 4.0. |
can we add tests for this case and looks what CI show? |
@evilebottnawi It's just a line of code. |
@yi-ge Strange, can't reproduce:
Input:
Output:
What os you use? |
@evilebottnawi MacOS. Merging code does not affect the result. You can first merge and verify. 😄 |
@yi-ge So this PR doesn't solve problem? |
@evilebottnawi This OR can solve the problem. |
@evilebottnawi This PR, No consequences. 😄 |
@yi-ge i can't understand you, i can't reproduce problem 😞 Maybe it is happens only on |
@evilebottnawi Only on |
@yi-ge looks like all works fine, i can't understand problem, please clarrify |
@evilebottnawi The same code cannot be run in Mac OS node v11.1.0 +. You can see: spdy-http2/node-spdy#350 or #1592. This PR avoid this kind of situation from happening. |
@yi-ge thanks for clarify, just add comment in code with link on issue and we can merge this 👍 |
In node v11+: