From 8defd93855b35a86b565f3a814e7d47c7f3a0326 Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Tue, 28 Nov 2023 21:37:46 +0200 Subject: [PATCH] fix: use proper name for native constructors --- src/me/topchetoeu/jscript/interop/NativeWrapperProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/topchetoeu/jscript/interop/NativeWrapperProvider.java b/src/me/topchetoeu/jscript/interop/NativeWrapperProvider.java index 6edc93f..f3045b7 100644 --- a/src/me/topchetoeu/jscript/interop/NativeWrapperProvider.java +++ b/src/me/topchetoeu/jscript/interop/NativeWrapperProvider.java @@ -165,7 +165,7 @@ public class NativeWrapperProvider implements WrappersProvider { } 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);