From b4f72feb5217af069d4de3daca794904067dee93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Mon, 11 Sep 2023 15:47:59 +0200 Subject: [PATCH] Verify object value in addition to descriptor value in verifyProperty --- harness/propertyHelper.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/harness/propertyHelper.js b/harness/propertyHelper.js index 7068f2560c..ac273750f4 100644 --- a/harness/propertyHelper.js +++ b/harness/propertyHelper.js @@ -68,6 +68,9 @@ function verifyProperty(obj, name, desc, options) { if (!isSameValue(desc.value, originalDesc.value)) { failures.push("descriptor value should be " + desc.value); } + if (!isSameValue(desc.value, obj[name])) { + failures.push(failures, "object value should be " + desc.value); + } } if (Object.prototype.hasOwnProperty.call(desc, 'enumerable')) {