mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 06:22:56 +00:00
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]
|
|
})
|