Skip to content
New issue

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

'object. invoke (functionName)' did not throw an exception #306

Closed
rongrong1000 opened this issue Mar 8, 2024 · 3 comments · Fixed by #311
Closed

'object. invoke (functionName)' did not throw an exception #306

rongrong1000 opened this issue Mar 8, 2024 · 3 comments · Fixed by #311
Assignees
Labels
enhancement New feature or request

Comments

@rongrong1000
Copy link

public static void main(String[] args) throws JavetException {
        V8Runtime v8Runtime = V8Host.getNodeInstance().createV8Runtime();
        V8Value handleResult = v8Runtime.getGlobalObject().invoke("nofunction");
        System.out.println("handleResult: " + handleResult);
    }

console: handleResult: undefined

@rongrong1000
Copy link
Author

I think should throw an exception
TypeError: _____ is not a function

@caoccao
Copy link
Owner

caoccao commented Mar 8, 2024

This behavior has been with Javet since the beginning of this project. I agree: it's time to correct it.

@caoccao caoccao self-assigned this Mar 8, 2024
@caoccao caoccao added the enhancement New feature or request label Mar 8, 2024
@caoccao
Copy link
Owner

caoccao commented Mar 9, 2024

That is completed. Please wait for the next release.

@caoccao caoccao linked a pull request Mar 16, 2024 that will close this issue
@caoccao caoccao closed this as completed Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants