Skip to content

Wrong extension methods caching? #102

@yakiro-nvg

Description

@yakiro-nvg

In DispatchingUserDataDescriptor.cs

if (v == null && m_ExtMethodsVersion < UserData.GetExtensionMethodsChangeVersion())
{
    m_ExtMethodsVersion = UserData.GetExtensionMethodsChangeVersion();

    v = TryIndexOnExtMethod(script, obj, index.String);
    if (v == null) v = TryIndexOnExtMethod(script, obj, UpperFirstLetter(index.String));
    if (v == null) v = TryIndexOnExtMethod(script, obj, Camelify(index.String));
    if (v == null) v = TryIndexOnExtMethod(script, obj, UpperFirstLetter(Camelify(index.String)));
}   

In my case, it only work if the condition is:
if (v == null && m_ExtMethodsVersion <= UserData.GetExtensionMethodsChangeVersion())

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions