Merge pull request #5166 from pleath:17513966 It's now normal for, e.g., null or simple type to evolve to a path type.
@@ -336,8 +336,7 @@ namespace Js
if (!typeHandlerToEnumerate->IsPathTypeHandler())
{
- AssertMsg(false, "Can only enumerate PathTypeHandler if types don't match.");
- Js::Throw::InternalError();
+ return typeHandlerToEnumerate->FindNextProperty(scriptContext, index, propertyStringName, propertyId, attributes, type, typeToEnumerate, flags, instance, info);
}
PathTypeHandlerBase* pathTypeToEnumerate = (PathTypeHandlerBase*)typeHandlerToEnumerate;