mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04: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" };
|