From f8ccaab4540f2d9463b97caaae4720b536f8b55a Mon Sep 17 00:00:00 2001 From: Roel Walraven Date: Thu, 4 Aug 2016 16:24:27 +0200 Subject: [PATCH] Fixes issue with wrong types something something 0 index... --- mock/LightDMMock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mock/LightDMMock.js b/mock/LightDMMock.js index 668dd59..b075911 100644 --- a/mock/LightDMMock.js +++ b/mock/LightDMMock.js @@ -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]); } };