fix: use proper name for native constructors

This commit is contained in:
TopchetoEU 2023-11-28 21:37:46 +02:00
parent 6c57e0e9f2
commit 8defd93855
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -165,7 +165,7 @@ public class NativeWrapperProvider implements WrappersProvider {
} }
if (((OverloadFunction)func).overloads.size() == 0) { if (((OverloadFunction)func).overloads.size() == 0) {
func = new NativeFunction(clazz.getName(), (a, b, c) -> { throw EngineException.ofError("This constructor is not invokable."); }); func = new NativeFunction(getName(clazz), (a, b, c) -> { throw EngineException.ofError("This constructor is not invokable."); });
} }
applyMethods(ctx, false, func, clazz); applyMethods(ctx, false, func, clazz);