mirror of
https://github.com/denoland/deno.git
synced 2024-12-14 19:37:59 -05:00
e3eae662f3
This commit adds "Deno.core.setFormatExceptionCallback" which can be used to provide custom formatting for errors. It is useful in cases when user throws something that is non-Error (eg. a string, plain object, etc).
1 line
22 B
TypeScript
1 line
22 B
TypeScript
throw { foo: "bar" };
|