Closed pacifiquem closed 8 months ago
We don't check if number of arguments to functions are equal to number of parameters of that function.
this leads to errors like Error reading file: Cannot read properties of undefined (reading 'type').
Error reading file: Cannot read properties of undefined (reading 'type')
in globals.ts inside runtime folder, always check if args.length == number of arguments the native function has to receive
globals.ts
args.length == number of arguments the native function has to receive
must be fixed in expressions.ts check if arguments, are equal to fn.parameters.length
expressions.ts
fn.parameters.length
We don't check if number of arguments to functions are equal to number of parameters of that function.
this leads to errors like
Error reading file: Cannot read properties of undefined (reading 'type')
.How to fix this
in
globals.ts
inside runtime folder, always check ifargs.length == number of arguments the native function has to receive
must be fixed in
expressions.ts
check if arguments, are equal tofn.parameters.length