fix: use proper name for native constructors
This commit is contained in:
parent
6c57e0e9f2
commit
8defd93855
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user