The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / test / simple / test-event-emitter-listeners-side-effects.js @ 6f043940

History | View | Annotate | Download (2.01 KB)

# Date Author Comment
4f7f8bbd 03/01/2013 08:36 PM Trevor Norris

events: _events to object and undefined not null

By making sure the _events is always an object there is one less check
that needs to be performed by emit.

Use undefined instead of null. typeof checks are a lot faster than
isArray.

There are a few places where the this._events check cannot be removed...

b7d76a1a 01/17/2013 04:20 PM isaacs

Revert "events: Don't crash on events named proto"

Unfortunately, it's just too slow to do this in events.js. Users will
just have to live with not having events named proto or toString.

This reverts commit b48e303af023dc60b6f6590694ba94d9b8108702.

b48e303a 01/17/2013 12:21 PM isaacs

events: Don't crash on events named proto

This prefixes all event names internally with 'ev'.

77ed12fe 12/13/2012 07:57 PM isaacs

Merge remote-tracking branch 'ry/v0.8' into master

Conflicts:
AUTHORS
ChangeLog
deps/uv/test/test-spawn.c
deps/uv/uv.gyp
src/cares_wrap.cc
src/node.cc
src/node_version.h
test/simple/test-buffer.js
tools/gyp/pylib/gyp/common.py
tools/install.py

50c7d80f 08/13/2012 01:04 PM isaacs

events: emitter.listeners() should not have side effects

Fixes #3803