From f071f991caa27089f68a0ddde59ede6a24f58f05 Mon Sep 17 00:00:00 2001 From: moritzraho Date: Wed, 8 Mar 2023 17:12:49 +0100 Subject: [PATCH] fix typo in process.env invalid accessor error --- src/node_env_var.cc | 2 +- test/parallel/test-process-env-ignore-getter-setter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node_env_var.cc b/src/node_env_var.cc index 990a2a40717216..b0ad4f35cf9642 100644 --- a/src/node_env_var.cc +++ b/src/node_env_var.cc @@ -445,7 +445,7 @@ static void EnvDefiner(Local 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, 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' } );