We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS代码:
function a(){ return new Promise((resolve, reject) => { resolve(1234); }) } globalThis.main=a;
Java代码:
runtime.getExecutor(code).executeVoid(); var obj = runtime.getGlobalObject().invoke("main"); var callback = new AsyncHandler(); try (V8ValuePromise promise = (V8ValuePromise) obj) { promise.register(callback); runtime.await(); // The callback happens. log("============>>>{}, {}", callback.getResult(), promise.getResult()); } finally { runtime.lowMemoryNotification(); }
问题: callback 不执行。
The text was updated successfully, but these errors were encountered:
There is a test case for this feature. As I just tested, it works as expected. Could you try that case out?
Sorry, something went wrong.
No branches or pull requests
JS代码:
Java代码:
问题:
callback 不执行。
The text was updated successfully, but these errors were encountered: