mirror of
https://github.com/cytodev/LightDMMock.git
synced 2025-09-13 21:02:58 +02:00
Fixes issue with wrong types
something something 0 index...
This commit is contained in:
@@ -408,8 +408,8 @@ window.checkArguments = function(args, length, types) {
|
|||||||
throw new IncompatibleArgumentCountException(length, args.length);
|
throw new IncompatibleArgumentCountException(length, args.length);
|
||||||
|
|
||||||
for(var i = 1; i <= types.length; i++) {
|
for(var i = 1; i <= types.length; i++) {
|
||||||
if(typeof args[i] !== types[i-1])
|
if(typeof args[i-1] !== types[i-1])
|
||||||
throw new IncompatibleArgumentTypesException(i, types[i-1], typeof args[i]);
|
throw new IncompatibleArgumentTypesException(i, types[i-1], typeof args[i-1]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user