narrow down C# test error

This commit is contained in:
2021-07-20 13:56:02 -06:00
parent 790dc31333
commit 8173839634
2 changed files with 5 additions and 3 deletions

View File

@@ -211,7 +211,9 @@ class EmbeddedScript {
// fields, otherwise DSL state will be lost when forking, which is unacceptable
var fork = new kiss.cloner.Cloner().clone(this);
fork.instructions[instructionPointer] = command;
// trace(fork.breakPoints);
if (fork.breakPoints == null) {
throw 'cloning failed';
}
// trace('running a fork from ' + Std.string(instructionPointer + 1));
fork.run();
// trace("fork finished");

View File

@@ -39,7 +39,7 @@ class Cloner {
return v;
#end
#if neko
#if (neko || cs)
try {
if (Type.getClassName(cast v) != null)
return v;
@@ -68,7 +68,7 @@ class Cloner {
case TEnum(e):
return v;
case TUnknown:
return null;
throw 'Cannot clone object of unknown type $v';
}
}