Skip to content

Commit 3fdcfd6

Browse files
committed
Fix issues with blacklisted fields code
1 parent 90ae6e4 commit 3fdcfd6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

polymod/hscript/_internal/PolymodInterpEx.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,7 @@ class PolymodInterpEx extends Interp
11971197
errorEx(ENullObjectReference(f));
11981198

11991199
var oCls:String = Util.getTypeName(Type.typeof(o));
1200+
#if hl oCls = oCls.replace('$', ''); #end
12001201

12011202
// Check if the field is a blacklisted static field.
12021203
if (PolymodScriptClass.blacklistedStaticFields.exists(o) && PolymodScriptClass.blacklistedStaticFields.get(o).contains(f))
@@ -1324,6 +1325,7 @@ class PolymodInterpEx extends Interp
13241325
errorEx(ENullObjectReference(f));
13251326

13261327
var oCls:String = Util.getTypeName(Type.typeof(o));
1328+
#if hl oCls = oCls.replace('$', ''); #end
13271329

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

0 commit comments

Comments
 (0)