Skip to content

bnoordhuis/node-weakref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weakref

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.

About

weak references in node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published