Skip to content

Commit abd689c

Browse files
committed
[MERGE #5305 @pleath] OS#17810746: When we add a property that forces a conversion from path type to dictionary type, preserve the attributes that were passed by the caller
Merge pull request #5305 from pleath:17810746
2 parents 6e4f61e + cf764a4 commit abd689c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Runtime/Types/PathTypeHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,7 @@ namespace Js
23242324
#ifdef PROFILE_TYPES
23252325
scriptContext->convertPathToDictionaryExceededLengthCount++;
23262326
#endif
2327-
return TryConvertToSimpleDictionaryType(instance, GetPathLength() + 1)->SetPropertyWithAttributes(instance, propertyId, value, PropertyDynamicTypeDefaults, info, PropertyOperation_None, possibleSideEffects);
2327+
return TryConvertToSimpleDictionaryType(instance, GetPathLength() + 1)->SetPropertyWithAttributes(instance, propertyId, value, ObjectSlotAttributesToPropertyAttributes(attr), info, PropertyOperation_None, possibleSideEffects);
23282328
}
23292329

23302330
PropertyIndex index;

0 commit comments

Comments
 (0)