make constructors work
This commit is contained in:
parent
f5307d2b97
commit
9c6a4cc98a
1 changed files with 1 additions and 0 deletions
|
@ -999,6 +999,7 @@ public class ISBPL {
|
|||
for (Constructor<?> constructor : clazz.getDeclaredConstructors()) {
|
||||
addFunction(type, "new" + constructor.getParameterCount(), stack -> {
|
||||
constructor.setAccessible(true);
|
||||
stack.pop();
|
||||
Object[] params = new Object[constructor.getParameterCount()];
|
||||
for (int i = params.length - 1 ; i >= 0 ; i--) {
|
||||
params[i] = fromISBPL(stack.pop());
|
||||
|
|
Loading…
Add table
Reference in a new issue