diff --git a/src/node_env_var.cc b/src/node_env_var.cc index 990a2a40717216..94936ea1c2bd22 100644 --- a/src/node_env_var.cc +++ b/src/node_env_var.cc @@ -444,8 +444,8 @@ static void EnvDefiner(Local 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, diff --git a/test/parallel/test-process-env-ignore-getter-setter.js b/test/parallel/test-process-env-ignore-getter-setter.js index 7368eb85684c5a..677960570a0bc1 100644 --- a/test/parallel/test-process-env-ignore-getter-setter.js +++ b/test/parallel/test-process-env-ignore-getter-setter.js @@ -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' } );