ESAPI / owasp-esapi-js

An UNMAINTAINTED project originally exported from code.google.com/p/owasp-esapi-js. This project is deprecated. See the README.md for further details and possible alternatives.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

for...in function not working when i include the esapi.js file

varshini39 opened this issue · comments

When i include the esapi.js file and use the for..in loop in my js function, it automatically adds the each parameter and calls the function(fIterator) which leads to error.
Check the screenshot below. When i define a variable and run it in for...in loop, the other functions in esapi.js are also called.
screenshot from 2017-05-23 19 54 36

@varshini39 , the problem is how the for..in is used. For..in on javascript loops through the properties of an object. ESAPI add more properties to Array.

Check this link