Change removed process methods to be non-enumerable.
This commit is contained in:
parent
e4afb2f724
commit
e3c0c86b28
@ -459,9 +459,15 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
startup.removedMethods = function() {
|
startup.removedMethods = function() {
|
||||||
|
var desc = {
|
||||||
|
configurable: true,
|
||||||
|
writable: true,
|
||||||
|
enumerable: false
|
||||||
|
};
|
||||||
for (var method in startup._removedProcessMethods) {
|
for (var method in startup._removedProcessMethods) {
|
||||||
var reason = startup._removedProcessMethods[method];
|
var reason = startup._removedProcessMethods[method];
|
||||||
process[method] = startup._removedMethod(reason);
|
desc.value = startup._removedMethod(reason);
|
||||||
|
Object.defineProperty(process, method, desc);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user