https://parpostlasbird.blogspot.com/2022/06/javascript-native-method-throws.html
Javascript Native Method Throws Unexpectedly Exception