Restructuring + KeyValueItherators + is + fixes

This commit is contained in:
NeeEoo
2023-09-23 21:23:31 +02:00
parent 80f6ea4502
commit a8cc0ccc86
13 changed files with 479 additions and 351 deletions
-4
View File
@@ -35,18 +35,14 @@ class CustomClassHandler implements IHScriptCustomConstructor {
var disallowCopy = Type.getInstanceFields(cl);
//trace("Locals");
for (key => value in capturedLocals) {
if(!disallowCopy.contains(key)) {
interp.locals.set(key, {r: value, depth: -1});
//trace(key, value);
}
}
//trace("Variables");
for (key => value in ogInterp.variables) {
if(!disallowCopy.contains(key)) {
interp.variables.set(key, value);
//trace(key, value);
}
}