Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

events: Don't assume .domain is a Domain instance #3998

Closed
wants to merge 1 commit into from
Closed

events: Don't assume .domain is a Domain instance #3998

wants to merge 1 commit into from

Conversation

bentaber
Copy link

EventEmitter assumes that anything with a .domain property is an instance of a
Domain.Domain. This clobbers any EventEmitter instances/inheriters that make
use of the fairly generalized property name. Change is backwards compatible
with existing interface. New test included.

Fixes #3922

I know pull request 3932 is already open, but this would allow this to be fixed
in the next v0.8 release as opposed to 1.0.

#3932

EventEmitter assumes that anything with a .domain property is an instance of a
Domain.Domain.  This clobbers any EventEmitter instances/inheriters that make
use of the fairly generalized property name.  Change is backwards compatible
with existing interface.  New test included.

Fixes #3922
@bnoordhuis
Copy link
Member

/cc @isaacs

@Nodejs-Jenkins
Copy link

Can one of the admins verify this patch?

@isaacs
Copy link

isaacs commented Mar 14, 2013

This has been resolved by other issues, and besides, does not merge cleanly. Re-submit if it's still a thing.

@isaacs isaacs closed this Mar 14, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants