Not sure precisely how to address an issue I ran into today, so I thought 
i'd throw it out there and see what the world says.

Using v0.10.1 with module node.io.  I have some code that looks like this:

var domain = require('domain');
var nodeio = require('node.io');

var storage = {};

storage.domain = domain.create();

storage.job = new nodeio.Job(...);

storage.domain.add(storage.job);

nodeio.start(job...);

At this point, node.io dies, because it attempts to create a unique name 
for the job by executing JSON.stringify(job).  Because I added the job to 
the domain, a domain property is now part of the job object, creating a 
circular reference.

My question is, is there a safe way to use JSON.stringify (or other object 
property traversal methods) on an object that has been added to a domain?

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to