Re: [v8-users] Question about Error.prepareStackTrace

2022-07-28 Thread theratliter theratliter
Thank you very much ! 在2022年7月25日星期一 UTC+8 18:46:22 写道: > As the documentation says: this api is just for rendering the stack, not > for trapping all exceptions that are thrown. > > The closest you can currently get to that is --print-all-exceptions, but > that obviously only works locally and

Re: [v8-users] Question about Error.prepareStackTrace

2022-07-25 Thread Toon Verwaest
As the documentation says: this api is just for rendering the stack, not for trapping all exceptions that are thrown. The closest you can currently get to that is --print-all-exceptions, but that obviously only works locally and just prints the exceptions. On Thu, Jul 21, 2022 at 10:44 AM theratl

[v8-users] Question about Error.prepareStackTrace

2022-07-21 Thread theratliter theratliter
Hi all! I have a question about `Error.prepareStackTrace`. I want to collect all stacks of error and do not affect the user. V8 document said `the custom prepareStackTrace function is only called once the stack property of Error object is accessed`. And the code as follows works. Does this co