Complete the following questions so forum users and Wick Editor developers can give you the best help possible! If the following questions are not completed, your post may be edited or removed.
Has this bug been reported already?
No
Describe the bug
let c = [{"placeHolder":"storing","tagName":"K24Storing"},{"placeHolder":"start","tagName":"K24Start"}]; console.log(JSON.stringify(c)); for (let idx in c){ console.log(idx); }
Console output:
0
1
max
To Reproduce
Run the code in Wick editor script engine. Note that the Wick runtime somehow creates a 3rd element “max” in the array that should have 2 elements in it.
Expected behavior
Console output:
0
1
(this is confirmed by trying this code in the Try-it editor of W3Schools)
*Computer Information
- OS: WIn 10
- Device Type: Laptop
- Browser: Chrome
Do you have a suggested solution to this issue? (ex. has another program fixed this bug a certain way? Are you familiar with where in the code base someone would need to fix this issue?)
Work around: use “normal” for loop.