mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
src: nuke deprecated and un-used enum members in OptionEnvvarSettings
Delete deprecated an never used enum options `kAllowedInEnvironment` and `kDisallowedInEnvironment` in `OptionEnvvarSettings` Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com> PR-URL: https://github.com/nodejs/node/pull/53079 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
parent
58a7b0011a
commit
03dcd7077a
@ -374,10 +374,6 @@ enum OptionEnvvarSettings {
|
||||
// Disallow the options to be set via the environment variable, like
|
||||
// `NODE_OPTIONS`.
|
||||
kDisallowedInEnvvar = 1,
|
||||
// Deprecated, use kAllowedInEnvvar instead.
|
||||
kAllowedInEnvironment = kAllowedInEnvvar,
|
||||
// Deprecated, use kDisallowedInEnvvar instead.
|
||||
kDisallowedInEnvironment = kDisallowedInEnvvar,
|
||||
};
|
||||
|
||||
// Process the arguments and set up the per-process options.
|
||||
|
4
typings/internalBinding/options.d.ts
vendored
4
typings/internalBinding/options.d.ts
vendored
@ -17,8 +17,8 @@ export interface OptionsBinding {
|
||||
aliases: Map<string, string[]>;
|
||||
};
|
||||
envSettings: {
|
||||
kAllowedInEnvironment: 0;
|
||||
kDisallowedInEnvironment: 1;
|
||||
kAllowedInEnvvar: 0;
|
||||
kDisallowedInEnvvar: 1;
|
||||
};
|
||||
noGlobalSearchPaths: boolean;
|
||||
shouldNotRegisterESMLoader: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user