frank06/riak-js — Issue #115: Riak-js blocks in node REPL when console.log is called within callbacks
Author: liamks
Created: 2012-02-28 17:52:06+00:00
State: open

I have riak (1.1.0 2012-02-19) OSX x86_64 and riak-js installed.

I run `node` to start the REPL.

```javascript
var db = require('riak-js').getClient()
db.count('flights') // this returns and prints 1 to console
db.count('flights', function(e,r,m){console.log(r)}) // this does not return
db.count('flights', function(e,r,m){console.log('hello world')}) // this returns
db.count('flights', function(){},{}) //this returns
```
When console.log is called, and it's parameter is one of the callback arguments, it results in the node-js function not returning. I can confirm this on `get` as well as `count`.