Skip to content

Commit 83238de

Browse files
committed
[MERGE #5166 @pleath] [MSFT 17513966] Handle case where a non-path type changes to a path type during enumeration
Merge pull request #5166 from pleath:17513966 It's now normal for, e.g., null or simple type to evolve to a path type.
2 parents 4f21511 + 4679fda commit 83238de

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)