node/test/gc/node_modules/weak/lib/weak.js

10 lines
254 B
JavaScript
Raw Normal View History

var bindings = require('../build/Release/weakref.node')
module.exports = bindings.create
// backwards-compat with node-weakref
bindings.weaken = bindings.create
Object.keys(bindings).forEach(function (name) {
module.exports[name] = bindings[name]
})