Closed croqaz closed 6 years ago
Hi again,
I found a weird bug when parsing Arrays.
var JSON6 = require('json-6') var d = '[ {a: "", b: ""}, {a: "", b: ""} ]' var r = JSON6.parse(d) // [ { a: '', b: '' }, <1 empty item>, { a: '', b: '' } ] // <empty item> ??? Array.isArray(r) // true
Yup; I see. Working on it.
Should be fixed test
That solves it! Fantastic!
Was testing performance and found that 'let' can cause deoptimizations. FIxed to restore performance over json5.
Hi again,
I found a weird bug when parsing Arrays.