miniscript icon indicating copy to clipboard operation
miniscript copied to clipboard

`json.toJSON` can't handle circular structure, which may result in memory leak

Open Withered-Flower-0422 opened this issue 1 year ago • 1 comments

]import "json"
]a = []
]a.push a
]json.toJSON a
  // never stop and memory leaks

Withered-Flower-0422 avatar Jul 14 '24 09:07 Withered-Flower-0422

Should it raise in this case?

marcgurevitx avatar Jul 15 '24 05:07 marcgurevitx