JoeStrout / miniscript

source code of both C# and C++ implementations of the MiniScript scripting language
MIT License
280 stars 64 forks source link

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

Open Withered-Flower-0422 opened 3 months ago

Withered-Flower-0422 commented 3 months ago
]import "json"
]a = []
]a.push a
]json.toJSON a
  // never stop and memory leaks
marcgurevitx commented 3 months ago

Should it raise in this case?