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
  • Loading branch information
moritzraho committed Apr 11, 2023
1 parent 0c46051 commit e9948bf
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 e9948bf

Please sign in to comment.