AsyncChat
AsyncChat
I'm getting an error when I'm using an asynchronous dynamic import `import('fs').then(obj => { console.log(obj) })` Error `[ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified. at importModuleDynamicallyCallback (node:internal/modules/esm/utils:231:9) at c.js:13:1...
You can add an API to implement Node.js kind of console.log print object, serialize all data objects in it, instead of displaying [object object], and toJsonString, when you encounter a...
When I use URLClassLoader and Class.forName to load the class of the external jar, how do I get JavetProxyConverter to do the automatic proxy? (although I can do it myself,...
`v8.getExecutor("b()").setModule(true).setResourceName("a.js").executeVoid();` `v8.await()` `ReferenceError: b is not defined at c.js:6:1 2024-04-26 14:38:46.684 6432-6696 nodejs com.proxy.plus E Node.js v20.12.2`
Is it possible to manipulate Java objects and use them in JS, as is the case with the Rhino engine?
I hope to support JS to inherit classes from Java and implement rewrites, because many Java interfaces need to be rewritten, read-only, and there are still big limitations
1.Follow your example and write an anonymous class. public class TestJava { public int add() { return 2; } } 2. Initialize the proxy plugin. javetProxyConverter.getConfig().setReflectionObjectFactory(JavetReflectionObjectFactory.getInstance()); IJavetAnonymous anonymous = new...