https://thewallacehouseblog.blogspot.com/2024/07/javascript-native-method-throws.html
Javascript Native Method Throws Unexpectedly Exception