Skip to content

Commit 43657d8

Browse files
committed
Fix issues with blacklisted fields code
1 parent c8aec3f commit 43657d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

polymod/hscript/_internal/PolymodInterpEx.hx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,10 +1127,11 @@ class PolymodInterpEx extends Interp
11271127
case TEnum(enm):
11281128
Std.string(enm);
11291129
case TObject:
1130-
o;
1130+
#if hl Std.string(o); #else o; #end
11311131
default:
11321132
Std.string(Type.typeof(o));
11331133
}
1134+
#if hl oCls = oCls.replace('$', ''); #end
11341135

11351136
// Check if the field is a blacklisted static field.
11361137
if (PolymodScriptClass.blacklistedStaticFields.exists(o) && PolymodScriptClass.blacklistedStaticFields.get(o).contains(f))
@@ -1252,10 +1253,11 @@ class PolymodInterpEx extends Interp
12521253
case TEnum(enm):
12531254
Std.string(enm);
12541255
case TObject:
1255-
o;
1256+
#if hl Std.string(o); #else o; #end
12561257
default:
12571258
Std.string(Type.typeof(o));
12581259
}
1260+
#if hl oCls = oCls.replace('$', ''); #end
12591261

12601262
// Check if the field is a blacklisted static field.
12611263
if (PolymodScriptClass.blacklistedStaticFields.exists(o) && PolymodScriptClass.blacklistedStaticFields.get(o).contains(f))

0 commit comments

Comments
 (0)