Fix isBypassAccessor on get resolve

This commit is contained in:
Ne_Eo
2024-09-04 00:11:19 +02:00
parent 3ec4fc9f0b
commit 6b5a47b017
+5 -1
View File
@@ -602,7 +602,11 @@ class Interp {
}
if (instanceHasField) {
return UnsafeReflect.getProperty(scriptObject, id);
if(isBypassAccessor) {
return UnsafeReflect.field(scriptObject, id);
} else {
return UnsafeReflect.getProperty(scriptObject, id);
}
} else if (__instanceFields.contains('get_$id')) { // getter
return UnsafeReflect.getProperty(scriptObject, 'get_$id')();
}