- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 33.6k
stream: avoid caching prepend check #8018
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
stream: avoid caching prepend check #8018
Conversation
| Ugh. Dang. Ok. | 
        
          
                lib/_stream_readable.js
              
                Outdated
          
        
      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.
typo: implementation
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.
thanks
| yeah libraries compiled as UMDs for node are the problem case this would solve | 
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.
Can you use const here, and below.
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.
yes I can, thanks
| LGTM I think, CI: https://ci.nodejs.org/job/node-test-commit/4457/ | 
| Still LGTM with the latest commits if CI is green. | 
| LGTM | 
| ok there was a linting error but I fixed that | 
| Hopefully final CI then: https://ci.nodejs.org/job/node-test-commit/4460/ (and below) | 
| ok I'm heading out the door, but if that looks good i can squash that latter tonight | 
| are those failures something I should worry about ? | 
| I don’t think so, but maybe the FreeBSD failure (test-timers-same-timeout-wrong-list-deleted from #7827) is interesting to @erinspice @misterdjules? | 
| New CI to be sure: https://ci.nodejs.org/job/node-test-commit/4472/ | 
| More flaky failures unfortunately. They appear unrelated. | 
This removes the cached check for EE.prototype.prependListener because we can't have nice things. More specifically some libraries will bundle their own event emitter implementation.
ccea2e2    to
    9e0f7f4      
    Compare
  
    | ok rebased it then | 
| CITGM looks good with only expected failures. | 
| LGTM | 
This removes the cached check for EE.prototype.prependListener because we can't have nice things. More specifically some libraries will bundle their own event emitter implementation. PR-URL: #8018 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
| Landed in 774146d | 
This removes the cached check for EE.prototype.prependListener because we can't have nice things. More specifically some libraries will bundle their own event emitter implementation. PR-URL: #8018 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
| should this be backported? | 
| No, the original change that introduced this issue was not backported to v4. | 
Checklist
make -j4 test(UNIX), orvcbuild test nosign(Windows) passesno but it failed before my change
Affected core subsystem(s)
@nodejs/streams
Description of change
This removes the cached check for EE.prototype.prependListener because we can't
have nice things. More specifically some libraries will bundle their own event
emitter implementation.