(copied from tc39/proposal-record-tuple#330)
JSON.parseImmutable seems like it can be expressed as an option given to JSON.parse since it's otherwise identical as far as I'm aware. I see that in tc39/proposal-record-tuple#74 it was originally imagined this way but quickly rejected. But couldn't we take an options bag in place of the reviver and branch on its type?
(copied from tc39/proposal-record-tuple#330)
JSON.parseImmutable seems like it can be expressed as an option given to JSON.parse since it's otherwise identical as far as I'm aware. I see that in tc39/proposal-record-tuple#74 it was originally imagined this way but quickly rejected. But couldn't we take an options bag in place of the reviver and branch on its type?