Browse Source

Change removed process methods to be non-enumerable.

v0.7.4-release
Brandon Benvie 13 years ago
committed by Ben Noordhuis
parent
commit
e3c0c86b28
  1. 8
      src/node.js

8
src/node.js

@ -459,9 +459,15 @@
};
startup.removedMethods = function() {
var desc = {
configurable: true,
writable: true,
enumerable: false
};
for (var method in startup._removedProcessMethods) {
var reason = startup._removedProcessMethods[method];
process[method] = startup._removedMethod(reason);
desc.value = startup._removedMethod(reason);
Object.defineProperty(process, method, desc);
}
};

Loading…
Cancel
Save