You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed bug in checkArgs of jsdebug showing wrong error.
Now optional arguments get skipped when there are less arguments than
possible params.
Example of the previous behaviour:
Imagine a signature like that: testFunction([bool1: bool], bool2: bool,
someString: String);
And a call like this: ``testFunction(true, "test");``
We would have printed: "Arguments mismatch: testFunction([bool1], bool2,
someString) - String specified where bool expected ..."
with bool2 marked red.
Now we're skipping the first argument and print nothing.
@@ -409,20 +413,29 @@ function checkArgsTypes(method, args) {
409
413
410
414
if(param.optional){
411
415
if(maxOptionals>0){
416
+
// Skips optional parameters, if it has the same type as the following parameter, not enough parameters are specified and the next param is not optional.
417
+
// One exmple function is Application.View([string], string, object)
0 commit comments