weak references in node.js
# installs node-weakref system wide node-waf configure build install weakref = require('weakref'); var obj = weakref.weaken({val:42}); console.error(obj); // "{ val: 42 }" // time passes, the garbage collector runs... console.error(obj); // "{}" This is a proof of concept for node.js issue 631. Check the link for details and discussion.