GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib,src,doc: remove usage of events.EventEmitter by thefourtheye · Pull Request #2921 · nodejs/node

Conversation

@thefourtheye

@thefourtheye thefourtheye commented Sep 16, 2015

Copy link
Copy Markdown
Contributor

The events module already exports EventEmitter constructor function
So, we don't have to use events.EventEmitter to access it.

Refer: #2896

cc @silverwind @evanlucas

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@thefourtheye
doc: remove usage of events.EventEmitter
990659c
The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.

Refer: nodejs#2896
@thefourtheye thefourtheye added doc Issues and PRs related to Node.js documentation. events Issues and PRs related to EventEmitter and the events module. test Issues and PRs related to Node.js core tests and test infrastructure. labels Sep 16, 2015
evanlucas
evanlucas reviewed Sep 17, 2015
View reviewed changes
Comment thread lib/_http_server.js Outdated

@evanlucas evanlucas Sep 17, 2015

Copy link
Copy Markdown
Contributor

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.

maybe var obj = new EventEmitter();?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@thefourtheye thefourtheye Sep 17, 2015

Copy link
Copy Markdown
Contributor Author

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.

@evanlucas I updated this. Thanks :-)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@thefourtheye
lib,src: remove usage of events.EventEmitter
705ff31
The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.

Refer: nodejs#2896
@thefourtheye
thefourtheye force-pushed the events-eventemitter-usage branch 2 times, most recently from 742a9ad to 705ff31 Compare September 19, 2015 06:47
@thefourtheye

thefourtheye commented Sep 19, 2015

Copy link
Copy Markdown
Contributor Author

Removing the test changes, after a lengthy discussion with @brendanashworth ;-)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thefourtheye thefourtheye removed the test Issues and PRs related to Node.js core tests and test infrastructure. label Sep 19, 2015
@thefourtheye thefourtheye changed the title lib,src,test,doc: remove usage of events.EventEmitter lib,src,doc: remove usage of events.EventEmitter Sep 19, 2015
@silverwind

silverwind commented Sep 22, 2015

Copy link
Copy Markdown
Contributor

CI: https://ci.nodejs.org/job/node-test-pull-request/361/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@silverwind

silverwind commented Sep 22, 2015

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

1 similar comment
@targos

targos commented Sep 22, 2015

Copy link
Copy Markdown
Member

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

thefourtheye added a commit that referenced this pull request Sep 22, 2015
@thefourtheye
doc: remove usage of events.EventEmitter
7953c83
The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.

Refer: #2896

PR-URL: #2921
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
thefourtheye added a commit that referenced this pull request Sep 22, 2015
@thefourtheye
lib,src: remove usage of events.EventEmitter
f32a606
The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.

Refer: #2896

PR-URL: #2921
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@thefourtheye

thefourtheye commented Sep 22, 2015

Copy link
Copy Markdown
Contributor Author

Thanks for the review, landed in f32a606 and 7953c83

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thefourtheye thefourtheye closed this Sep 22, 2015
@thefourtheye
thefourtheye deleted the events-eventemitter-usage branch September 22, 2015 18:54
thefourtheye added a commit that referenced this pull request Sep 22, 2015
@thefourtheye @rvagg
doc: remove usage of events.EventEmitter
43e2b7f
The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.

Refer: #2896

PR-URL: #2921
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
thefourtheye added a commit that referenced this pull request Sep 22, 2015
@thefourtheye @rvagg
lib,src: remove usage of events.EventEmitter
1860e0c
The `events` module already exports `EventEmitter` constructor function
So, we don't have to use `events.EventEmitter` to access it.

Refer: #2896

PR-URL: #2921
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@rvagg rvagg mentioned this pull request Sep 22, 2015
Release proposal: v4.1.1 #2995
Merged
@targos targos mentioned this pull request Oct 24, 2015
Fix code example #3509
Closed
stojanovic added a commit to stojanovic/koa that referenced this pull request Oct 24, 2015
@stojanovic
Refactor - EventEmitter is already exported by 'events' module
dac250b
The 'events' module already exports 'EventEmitter' constructor function - nodejs/node#2921
This was referenced Nov 11, 2015
feat: remove EventEmitter from 'event' module node-modules/changing#1
Merged
feat: remove EventEmitter from 'event' module node-modules/mm#23
Merged
@joyeecheung joyeecheung mentioned this pull request Dec 10, 2016
doc: clarify the review and landing process #10202
Closed
2 tasks done
@s4sc s4sc mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities s4sc/node#34
Open
@AyushG3112 AyushG3112 mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities AyushG3112/node#36
Open
@thakursachin467 thakursachin467 mentioned this pull request Nov 30, 2023
[Snyk] Fix for 1 vulnerabilities thakursachin467/node#31
Open
@RickAllMighty8195 RickAllMighty8195 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities RickAllMighty8195/node#29
Open
@Megoy-Tambayan Megoy-Tambayan mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Megoy-Tambayan/node#2
Open
@Dixiejane Dixiejane mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Dixiejane/node#17
Open
@JCsomeShots JCsomeShots mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities JCsomeShots/node#13
Open
@jj-crypto jj-crypto mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities jj-crypto/node#26
Open
@ZRDK ZRDK mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade node-gyp from 9.4.1 to 10.0.0 ZRDK/node#67
Open
@buzzlightyear726 buzzlightyear726 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities buzzlightyear726/node#44
Open
@Renukaloch Renukaloch mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities Renukaloch/node#26
Open
@MaxMood96 MaxMood96 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities MaxMood96/node#44
Open
@davidmather davidmather mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities davidmather/node#18
Open
@mrod0101 mrod0101 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities mrod0101/node#14
Closed
@CxsLucyfer CxsLucyfer mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities CxsLucyfer/node#7
Open
@dewaynesmith3711 dewaynesmith3711 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities dewaynesmith3711/node#77
Open
@kingjay66 kingjay66 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities kingjay66/node#9
Open
@zhangpan0907 zhangpan0907 mentioned this pull request Feb 11, 2024
[Snyk] Fix for 1 vulnerabilities zhangpan0907/node#5
Open
@Supermajestcd Supermajestcd mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities Supermajestcd/node#23
Open
@SanchitMahajan236 SanchitMahajan236 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities SanchitMahajan236/node#28
Open
@terrorizer1980 terrorizer1980 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities Exhorder6/node#29
Open
@myvali998 myvali998 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities myvali998/node#14
Open
@ambai ambai mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 9.4.1 to 10.0.0 ambai/node#73
Open
@dewaynesmith3711 dewaynesmith3711 mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 8.4.1 to 10.0.0 dewaynesmith3711/node#79
Open
@BryanLaura BryanLaura mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 8.4.1 to 10.0.0 BryanLaura/node#89
Open
@nicholaschoi168 nicholaschoi168 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities nicholaschoi168/node#19
Open
@jefeaguila jefeaguila mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 9.4.1 to 10.0.0 jefeaguila/node#54
Open
@Michaela813 Michaela813 mentioned this pull request Feb 12, 2024
[Snyk] Security upgrade node-gyp from 9.4.1 to 10.0.0 Michaela813/node#57
Open
@chrismilleruk chrismilleruk mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities chrismilleruk/node#16
Open
@Michaela813 Michaela813 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities Michaela813/node#58
Open
@JoanKalanzi1 JoanKalanzi1 mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities JoanKalanzi1/node#18
Open
@BryanLaura BryanLaura mentioned this pull request Feb 12, 2024
[Snyk] Fix for 1 vulnerabilities BryanLaura/node#90
Open
truedev0127 added a commit to truedev0127/koa that referenced this pull request Dec 22, 2025
@truedev0127
Refactor - EventEmitter is already exported by 'events' module
78b08eb
The 'events' module already exports 'EventEmitter' constructor function - nodejs/node#2921
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

doc Issues and PRs related to Node.js documentation. events Issues and PRs related to EventEmitter and the events module.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@thefourtheye @silverwind @targos @evanlucas
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.