Skip to content

Is this intentional or by accident? #116

Answered by caoccao
stephan-ansems asked this question in Q&A
Discussion options

You must be logged in to vote

Nice finding! Yes, this is by design.

In JavetObjectConverter (the default converter), a Java Map is converted to a JS Object and there is no linkage between them afterwards. This is to ensure the guest JS code cannot jailbreak to the Java host environment. One of the principles that Javet holds is Security. So the default settings for V8 mode is solidly secure.

The config in JavetProxyConverter only takes effects when the actual conversion takes place. The linkage between the Java object and JS proxy object is permanently set regardless of new changes to the config.

I believe this behavior gives the host application fine-grained control over every conversion. Actually, the advanced usage…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stephan-ansems
Comment options

@caoccao
Comment options

Answer selected by stephan-ansems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants