diff --git a/common/src/main/java/dev/latvian/mods/rhino/VMBridge.java b/common/src/main/java/dev/latvian/mods/rhino/VMBridge.java index 2e4e9645..9b557416 100644 --- a/common/src/main/java/dev/latvian/mods/rhino/VMBridge.java +++ b/common/src/main/java/dev/latvian/mods/rhino/VMBridge.java @@ -67,7 +67,12 @@ public static Object newInterfaceProxy(Object proxyHelper, final InterfaceAdapte return "Proxy[" + target.toString() + "]"; } } - return adapter.invoke(cx, target, topScope, proxy, method, args); + + if (method.isDefault()) { + return InvocationHandler.invokeDefault(proxy, method, args); + } else { + return adapter.invoke(cx, target, topScope, proxy, method, args); + } }; Object proxy; try {