/usr/lib/nodejs/auto-bind/index.js is in node-auto-bind 0.1.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | 'use strict';
module.exports = function (self) {
Object.getOwnPropertyNames(self.constructor.prototype).forEach(function (key) {
var val = self[key];
if (key !== 'constructor' && typeof val === 'function') {
self[key] = val.bind(self);
}
});
};
|