fix: properties not applied to wrappers without constructor method
This commit is contained in:
parent
fc6ddf7d3c
commit
e33cdbb172
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user