~ubuntu-branches/ubuntu/trusty/nodejs/trusty-proposed

« back to all changes in this revision

Viewing changes to test/simple/test-event-emitter-max-listeners.js

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-12-12 23:04:07 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20131212230407-xfa6gka4c6oatsx1
Tags: 0.10.23~dfsg1-1
* Upstream update.
* Refresh patches, remove 1005 patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
// Should not corrupt the 'maxListeners' queue.
39
39
e.setMaxListeners(42);
40
40
 
 
41
assert.throws(function() {
 
42
  e.setMaxListeners(NaN);
 
43
});
 
44
 
 
45
assert.throws(function() {
 
46
  e.setMaxListeners(-1);
 
47
});
 
48
 
 
49
assert.throws(function() {
 
50
  e.setMaxListeners("and even this");
 
51
});
 
52
 
41
53
e.emit('maxListeners');