Skip to content

Commit 4679fda

Browse files
committed
[MSFT 17513966] Handle case where a non-path type changes to a path type during enumeration. It's now normal for, e.g., null or simple type to evolve to a path type.
1 parent 4f21511 commit 4679fda

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Runtime/Types/PathTypeHandler.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ namespace Js
336336

337337
if (!typeHandlerToEnumerate->IsPathTypeHandler())
338338
{
339-
AssertMsg(false, "Can only enumerate PathTypeHandler if types don't match.");
340-
Js::Throw::InternalError();
339+
return typeHandlerToEnumerate->FindNextProperty(scriptContext, index, propertyStringName, propertyId, attributes, type, typeToEnumerate, flags, instance, info);
341340
}
342341

343342
PathTypeHandlerBase* pathTypeToEnumerate = (PathTypeHandlerBase*)typeHandlerToEnumerate;

0 commit comments

Comments
 (0)