We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3049f87 commit c805d7eCopy full SHA for c805d7e
tests/method-names.js
@@ -28,6 +28,7 @@ var E = events.EventEmitter.prototype;
28
assert.strictEqual(E.constructor.name, 'EventEmitter');
29
assert.strictEqual(E.on, E.addListener); // Same method.
30
assert.strictEqual(E.off, E.removeListener); // Same method.
31
+console.log(Object.getOwnPropertyNames(E));
32
Object.getOwnPropertyNames(E).forEach(function(name) {
33
if (name === 'constructor' || name === 'on' || name === 'off') return;
34
if (typeof E[name] !== 'function') return;
0 commit comments