Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: fix deprecation id for non-string env value #19209

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/node.cc
Expand Up @@ -2667,7 +2667,7 @@ static void EnvSetter(Local<Name> property,
"Assigning any value other than a string, number, or boolean to a "
"process.env property is deprecated. Please make sure to convert the "
"value to a string before setting process.env with it.",
"DEP00XX").IsNothing())
"DEP0104").IsNothing())
return;
}
#ifdef __POSIX__
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-process-env-deprecation.js
Expand Up @@ -9,7 +9,7 @@ common.expectWarning(
'Assigning any value other than a string, number, or boolean to a ' +
'process.env property is deprecated. Please make sure to convert the value ' +
'to a string before setting process.env with it.',
'DEP00XX'
'DEP0104'
);

process.env.ABC = undefined;
Expand Down