Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Commit

Permalink
fix: properties not applied to wrappers without constructor method
Browse files Browse the repository at this point in the history
  • Loading branch information
TopchetoEU committed Apr 12, 2024
1 parent fc6ddf7 commit e33cdbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public static FunctionValue makeConstructor(Class<?> ...appliers) {
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;
}
Expand Down

0 comments on commit e33cdbb

Please sign in to comment.