-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools: use PrintCaughtException in the snapshot builder #38745
Conversation
This prints not only the error message but also the error source line and the stack trace wherever possible.
TryCatch bootstrapCatch(isolate); | ||
v8::MaybeLocal<Value> result = env->RunBootstrapping(); | ||
if (bootstrapCatch.HasCaught()) { | ||
PrintCaughtException(isolate, context, bootstrapCatch); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PrintCaughtException(isolate, context, bootstrapCatch); | |
PrintCaughtException(isolate, context, bootstrapCatch); | |
abort(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already a result.ToLocalChecked();
below which should abort the process if there's an exception
Co-authored-by: Voltrex <[email protected]>
Landed in 308ab8a |
This prints not only the error message but also the error source line and the stack trace wherever possible. PR-URL: #38745 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
This prints not only the error message but also the error source line and the stack trace wherever possible. PR-URL: #38745 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Doesn't land cleanly on v14.x-staging. |
This prints not only the error message but also the error
source line and the stack trace wherever possible.