Skip to content

Commit 0a7283c

Browse files
committed
Fix issues with blacklisted fields code
1 parent ce11c84 commit 0a7283c

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
@@ -1122,6 +1122,7 @@ class PolymodInterpEx extends Interp
11221122
errorEx(EInvalidAccess(f));
11231123

11241124
var oCls:String = Util.getTypeName(Type.typeof(o));
1125+
#if hl oCls = oCls.replace('$', ''); #end
11251126

11261127
// Check if the field is a blacklisted static field.
11271128
if (PolymodScriptClass.blacklistedStaticFields.exists(o) && PolymodScriptClass.blacklistedStaticFields.get(o).contains(f))
@@ -1237,6 +1238,7 @@ class PolymodInterpEx extends Interp
12371238
errorEx(EInvalidAccess(f));
12381239

12391240
var oCls:String = Util.getTypeName(Type.typeof(o));
1241+
#if hl oCls = oCls.replace('$', ''); #end
12401242

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

0 commit comments

Comments
 (0)