mirror of
https://github.com/cytodev/LightDMMock.git
synced 2024-11-24 15:13:40 +01:00
Fixes issue with wrong types
something something 0 index...
This commit is contained in:
parent
309c9d90c8
commit
f8ccaab454
@ -408,8 +408,8 @@ window.checkArguments = function(args, length, types) {
|
||||
throw new IncompatibleArgumentCountException(length, args.length);
|
||||
|
||||
for(var i = 1; i <= types.length; i++) {
|
||||
if(typeof args[i] !== types[i-1])
|
||||
throw new IncompatibleArgumentTypesException(i, types[i-1], typeof args[i]);
|
||||
if(typeof args[i-1] !== types[i-1])
|
||||
throw new IncompatibleArgumentTypesException(i, types[i-1], typeof args[i-1]);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user