Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
weak references in node.js
C++ JavaScript
branch: master
Failed to load latest commit information.
src node-weakref, first commit.
test test: fix native add-on path
.gitignore node-weakref, first commit.
LICENSE node-weakref, first commit. docs: add README
wscript node-weakref, first commit.


weak references in node.js

how to build

# installs node-weakref system wide
node-waf configure build install

how it works

weakref = require('weakref');

var obj = weakref.weaken({val:42});
console.error(obj); // "{ val: 42 }"
// time passes, the garbage collector runs...
console.error(obj); // "{}"

more info

This is a proof of concept for node.js issue 631. Check the link for details and discussion.

Something went wrong with that request. Please try again.