mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Verify object value in addition to descriptor value in verifyProperty
This commit is contained in:
parent
bba19d51ae
commit
b4f72feb52
@ -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')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user