make sure underlying C# clone error will fail loudly next time

This commit is contained in:
2021-07-20 17:24:45 -06:00
parent 4b9f129d00
commit 8e741bf37f

View File

@@ -107,6 +107,12 @@ class Cloner {
} catch (s) {
// There will be errors on C++ and C# when trying to assign to a member function.
// They're not important, because the function will already be on the clone.
// However, some types won't clone properly on C#, and if that becomes a problem, tests should fail
#if cs
if (field != "breakPoints" && Std.string(s) == "Specified cast is not valid.") {
throw 'Failed to clone field $field on $inValue';
}
#end
}
}
return outValue;