mirror of
https://github.com/cytodev/LightDMMock.git
synced 2024-11-24 23:19:49 +01:00
Should fix the off by one.
This commit is contained in:
parent
7c9da485f7
commit
580563abe3
@ -404,8 +404,8 @@ window.deprecationNotifier = function(type, deprecated, alternative) {
|
||||
* @throws {IncompatibleArgumentTypesException}
|
||||
*/
|
||||
window.checkArguments = function(args, length, types) {
|
||||
if(args.length -1 !== length)
|
||||
throw new IncompatibleArgumentCountException(length, args.length -1);
|
||||
if(args.length !== length)
|
||||
throw new IncompatibleArgumentCountException(length, args.length);
|
||||
|
||||
for(var i = 1; i <= types.length; i++) {
|
||||
if(typeof args[i] !== types[i-1])
|
||||
|
Loading…
Reference in New Issue
Block a user