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
describe('eql',function(){it('should not remove undefined',function(){vararr=[]arr.push('1')arr.push('2')arr.push(undefined)expect(arr).to.eql(['1','2',undefined])})})
This is because the keys function used here will not iterate over an undefined array item in IE8 unless the value was pushed to the array.
If on line 941 the keys function is called on a duplicate of the array, this could be resolved.
try{varka,kb,key,i;if(isArray(a)&&isArray(b)){ka=keys(cloneArray(a));kb=keys(cloneArray(b));}else{ka=keys(a);kb=keys(b);}}catch(e){//happens when one is a string literal and the other isn'treturnfalse;}functioncloneArray(arr){varclone=[];for(vari=0;i<arr.length;i++){clone.push(arr[i]);}returnclone;}functionisArray(obj){returnObject.prototype.toString.call(obj)==='[object Array]';}
The text was updated successfully, but these errors were encountered:
The following test fails
This is because the
keys
function used here will not iterate over an undefined array item in IE8 unless the value was pushed to the array.If on line 941 the keys function is called on a duplicate of the array, this could be resolved.
The text was updated successfully, but these errors were encountered: