harness/propertyHelper.js: Check the new property value chosen by isWritable for collision

This commit is contained in:
Richard Gibson 2024-09-23 12:15:23 -04:00 committed by Philip Chimento
parent 07a2c2501e
commit 0c7af4685f

View File

@ -173,6 +173,10 @@ function isWritable(obj, name, verifyProp, value) {
var oldValue = obj[name]; var oldValue = obj[name];
var writeSucceeded; var writeSucceeded;
if (arguments.length < 4 && newValue === oldValue) {
newValue = newValue + "2";
}
try { try {
obj[name] = newValue; obj[name] = newValue;
} catch (e) { } catch (e) {