Skip to content

Commit

Permalink
src: fix typo in process.env invalid accessor error
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzraho committed Mar 9, 2023
1 parent 0c46051 commit e1f7842
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/node_env_var.cc
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ static void EnvDefiner(Local<Name> property,
// 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)"
" 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 e1f7842

Please sign in to comment.