mirror of https://github.com/nodejs/node.git
10 lines
254 B
JavaScript
10 lines
254 B
JavaScript
|
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]
|
||
|
})
|