effect icon indicating copy to clipboard operation
effect copied to clipboard

From Discord: Safer Stringifier for fiberRuntime.absurd() and BigInt Serialization

Open effect-bot opened this issue 2 years ago • 0 comments

Summary

The discussion revolves around improving the absurd function in the Effect-TS ecosystem. The issue at hand is that when unexpected errors occur and absurd is called, it tries to serialize the error using JSON.stringify, which fails for certain types like bigints. This results in a loss of context in the error message. The key takeaway is that absurd should be enhanced to handle serialization of various types, including bigints, to provide more informative error messages.

Discord thread

https://discord.com/channels/795981131316985866/1183930312091250738

effect-bot avatar Dec 12 '23 13:12 effect-bot