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 and MoLow committed Jul 6, 2023
1 parent 688078b commit 175b78b
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 175b78b

Please sign in to comment.