Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

this test leaks

  • Loading branch information...
commit 28088ed2b7949ebf39f3cb6df095b59aba2d777c 1 parent ab01f72
@xk authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/test27_puts_event_loop.js
View
14 test/test27_puts_event_loop.js
@@ -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('ƒ()');
Please sign in to comment.
Something went wrong with that request. Please try again.