Skip to content

Commit 7ebf32b

Browse files
committed
Fix issues with blacklisted fields code
1 parent 1e245a4 commit 7ebf32b

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
@@ -1199,6 +1199,7 @@ class PolymodInterpEx extends Interp
11991199
errorEx(ENullObjectReference(f));
12001200

12011201
var oCls:String = Util.getTypeName(Type.typeof(o));
1202+
#if hl oCls = oCls.replace('$', ''); #end
12021203

12031204
// Check if the field is a blacklisted static field.
12041205
if (PolymodScriptClass.blacklistedStaticFields.exists(o) && PolymodScriptClass.blacklistedStaticFields.get(o).contains(f))
@@ -1326,6 +1327,7 @@ class PolymodInterpEx extends Interp
13261327
errorEx(ENullObjectReference(f));
13271328

13281329
var oCls:String = Util.getTypeName(Type.typeof(o));
1330+
#if hl oCls = oCls.replace('$', ''); #end
13291331

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

0 commit comments

Comments
 (0)