diff --git a/gradle.properties b/gradle.properties index 894f33f..a17b580 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ project_group = me.topchetoeu project_name = jscript -project_version = 0.9.40-beta +project_version = 0.9.41-beta main_class = me.topchetoeu.jscript.utils.JScriptRepl diff --git a/src/java/me/topchetoeu/jscript/utils/interop/NativeWrapperProvider.java b/src/java/me/topchetoeu/jscript/utils/interop/NativeWrapperProvider.java index d288a31..3f7573a 100644 --- a/src/java/me/topchetoeu/jscript/utils/interop/NativeWrapperProvider.java +++ b/src/java/me/topchetoeu/jscript/utils/interop/NativeWrapperProvider.java @@ -293,7 +293,7 @@ public class NativeWrapperProvider implements Copyable { new NativeFunction(getName(appliers), args -> { throw EngineException.ofError("This constructor is not invokable."); }) : create(getName(appliers), constr); - if (constr == null && !apply(res, ExposeTarget.CONSTRUCTOR, appliers)) return null; + if (!apply(res, ExposeTarget.CONSTRUCTOR, appliers) && constr == null) return null; return res; }