Skip to content

Commit

Permalink
feat: improve JavaMembers.java add cache for java lookup
Browse files Browse the repository at this point in the history
Signed-off-by: qxo <[email protected]>
  • Loading branch information
qxo committed Sep 17, 2024
1 parent f8a0a82 commit c18dea3
Show file tree
Hide file tree
Showing 2 changed files with 598 additions and 219 deletions.
20 changes: 19 additions & 1 deletion rhino/src/main/java/org/mozilla/javascript/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,28 @@ public class Context implements Closeable {
* Internationalization API implementation (see https://tc39.github.io/ecma402) can be activated
* using this feature.
*
* @since 1.7 Release 15
* @since 1.7 Release 16
*/
public static final int FEATURE_INTL_402 = 22;

/**
* Configure whether JavaMembers lazy init off.
*
* <p>default is lazy init.
*
* @since 1.7 Release 16
*/
public static final int FEATURE_JAVAMEMBERS_LAZY_INIT_OFF = 22;

/**
* Configure whether JavaMembers reflect cache off.
*
* <p>default is cache on.
*
* @since 1.7 Release 15
*/
public static final int FEATURE_JAVAMEMBERS_REFLECT_CACHE_OFF = 23;

public static final String languageVersionProperty = "language version";
public static final String errorReporterProperty = "error reporter";

Expand Down
Loading

0 comments on commit c18dea3

Please sign in to comment.