Javet icon indicating copy to clipboard operation
Javet copied to clipboard

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

Open rongrong1000 opened this issue 1 year ago • 3 comments

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 avatar Mar 08 '24 15:03 rongrong1000

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

rongrong1000 avatar Mar 08 '24 16:03 rongrong1000

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

caoccao avatar Mar 08 '24 22:03 caoccao

That is completed. Please wait for the next release.

caoccao avatar Mar 09 '24 00:03 caoccao