|
46 | 46 | import org.htmlunit.corejs.javascript.Function; |
47 | 47 | import org.htmlunit.corejs.javascript.FunctionObject; |
48 | 48 | import org.htmlunit.corejs.javascript.JavaScriptException; |
| 49 | +import org.htmlunit.corejs.javascript.MemberBox; |
49 | 50 | import org.htmlunit.corejs.javascript.NativeArray; |
50 | 51 | import org.htmlunit.corejs.javascript.NativeArrayIterator; |
51 | 52 | import org.htmlunit.corejs.javascript.NativeConsole; |
@@ -608,24 +609,24 @@ private static void configureProperties(final ClassConfiguration config, final S |
608 | 609 | if (propertyMap != null) { |
609 | 610 | for (final Entry<String, PropertyInfo> propertyEntry : propertyMap.entrySet()) { |
610 | 611 | final PropertyInfo info = propertyEntry.getValue(); |
611 | | - final Method readMethod = info.getReadMethod(); |
612 | | - final Method writeMethod = info.getWriteMethod(); |
613 | | - scriptable.defineProperty(propertyEntry.getKey(), null, readMethod, writeMethod, ScriptableObject.EMPTY); |
| 612 | + final MemberBox readMethod = info.getReadMethod(); |
| 613 | + final MemberBox writeMethod = info.getWriteMethod(); |
| 614 | + scriptable.defineProperty(propertyEntry.getKey(), readMethod, writeMethod, ScriptableObject.EMPTY); |
614 | 615 | } |
615 | 616 | } |
616 | 617 | } |
617 | 618 |
|
618 | 619 | private static void configureStaticProperties(final ClassConfiguration config, final ScriptableObject scriptable) { |
619 | 620 | final Map<String, PropertyInfo> staticPropertyMap = config.getStaticPropertyMap(); |
620 | 621 | if (staticPropertyMap != null) { |
621 | | - for (final Entry<String, ClassConfiguration.PropertyInfo> propertyEntry : staticPropertyMap.entrySet()) { |
622 | | - final String propertyName = propertyEntry.getKey(); |
623 | | - final Method readMethod = propertyEntry.getValue().getReadMethod(); |
624 | | - final Method writeMethod = propertyEntry.getValue().getWriteMethod(); |
625 | | - final int flag = ScriptableObject.EMPTY; |
626 | | - |
627 | | - scriptable.defineProperty(propertyName, null, readMethod, writeMethod, flag); |
628 | | - } |
| 622 | +// for (final Entry<String, ClassConfiguration.PropertyInfo> propertyEntry : staticPropertyMap.entrySet()) { |
| 623 | +// final String propertyName = propertyEntry.getKey(); |
| 624 | +// final Method readMethod = propertyEntry.getValue().getReadMethod(); |
| 625 | +// final Method writeMethod = propertyEntry.getValue().getWriteMethod(); |
| 626 | +// final int flag = ScriptableObject.EMPTY; |
| 627 | +// |
| 628 | +// scriptable.defineProperty(propertyName, null, readMethod, writeMethod, flag); |
| 629 | +// } |
629 | 630 | } |
630 | 631 | } |
631 | 632 |
|
|
0 commit comments