Skip to content

Commit

Permalink
src: fix typo in process.env accessor error message
Browse files Browse the repository at this point in the history
PR-URL: #47014
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
moritzraho authored Apr 16, 2023
1 parent 46a3cff commit 070c9a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/node_env_var.cc
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ static void EnvDefiner(Local<Name> property,
} else if (desc.has_get() || desc.has_set()) {
// we don't accept a getter/setter in 'process.env'
THROW_ERR_INVALID_OBJECT_DEFINE_PROPERTY(env,
"'process.env' does not accept an"
"accessor(getter/setter)"
"'process.env' does not accept an"
" accessor(getter/setter)"
" descriptor");
} else {
THROW_ERR_INVALID_OBJECT_DEFINE_PROPERTY(env,
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-process-env-ignore-getter-setter.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ assert.throws(
{
code: 'ERR_INVALID_OBJECT_DEFINE_PROPERTY',
name: 'TypeError',
message: '\'process.env\' does not accept an' +
message: '\'process.env\' does not accept an ' +
'accessor(getter/setter) descriptor'
}
);
Expand Down

0 comments on commit 070c9a8

Please sign in to comment.