Skip to content

Commit

Permalink
this test leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xk committed Mar 13, 2012
1 parent ab01f72 commit 28088ed
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/test27_puts_event_loop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var threads_a_gogo= require('threads_a_gogo');
var pool= threads_a_gogo.createPool(2);

var i= 0;
pool.on('again', function onAgain () {
this.eval('ƒ()');
});

function ƒ () {
puts(" ["+ thread.id+ "]"+ (++i));
thread.emit('again', 0);
}

pool.all.eval(ƒ).all.eval('i=0').all.eval('ƒ()').all.eval('ƒ()').all.eval('ƒ()');

0 comments on commit 28088ed

Please sign in to comment.