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
for (let y of ini.decode(ini.encode(x))) { console.log(y) }
despite the fact the following works:
for (let y of x) { console.log(y) }
The issue being that decoding results in an object where what was an array index is now a key, rather than create an array.
If this can be fixed, great. If it cannot because of backwards compatibility concerns, it would be nice if ini emitted a warning when encoding something that would not decode to an equivalent object.
The text was updated successfully, but these errors were encountered:
Given the following object as
x
:The following fails:
despite the fact the following works:
The issue being that decoding results in an object where what was an array index is now a key, rather than create an array.
If this can be fixed, great. If it cannot because of backwards compatibility concerns, it would be nice if
ini
emitted a warning when encoding something that would not decode to an equivalent object.The text was updated successfully, but these errors were encountered: