Change removed process methods to be non-enumerable.

This commit is contained in:
Brandon Benvie 2012-01-28 23:39:38 -05:00 committed by Ben Noordhuis
parent e4afb2f724
commit e3c0c86b28

View File

@ -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);
}
};