Hello v8-dev: To expand the ability of the audience to leave comments easily, I've copied the content of the explainer into a Google doc<https://docs.google.com/document/d/13hNeeLC2Ve_FVieNndZUUUP15x2O4ltvjnGWwOsMlrU/edit?usp=sharing>. I'll back-port any changes into the original explainer as we go.
Thanks, Rob Paveza From: Rob Paveza Sent: Monday, October 18, 2021 3:36 PM To: '[email protected]' <[email protected]> Subject: Proposal: Inclusion of source file hashes in stack traces Hello v8-dev: I haven't contributed to this group before. I'm Rob, an engineer on Microsoft Edge DevTools, and we'd like to offer a change to V8 which might improve developers' abilities to work through post-hoc debugging scenarios. The explainer can be found here<https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/DevTools/SourceHash/explainer.md>, but the long and short of it is: we would like to extend the printed stack trace from Error#stack to include a hex-formatted SHA-256 hash for each source. In principle, this should allow developers to index source maps similarly to how symbols are indexed for C++ code. Web applications can opt into this feature, once the feature is enabled, by setting Error.stackTraceSourceHash = true at runtime. Developers have attempted to handle these issues in many ways over the years. A few that come to mind include: * Including a CRC or similar hash in the filename, e.g., index.c812abbc.js * As a variation of the above, including a build timestamp in the filename * Including the exact version of the application alongside error reports and indexing source maps by that version (at one point I used an Ionic service which did this) However, this was all accomplished without having any specific runtime support. We believe that adding this runtime support will add more flexibility for developers. The implementation here<https://chromium-review.googlesource.com/c/v8/v8/+/3229957> uses code from the Omaha Installer project as noted in sha-256.h for the hash computation. Thanks, Rob Paveza -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/BL0PR00MB04038B9624DE9F94BAA6C82D89BE9%40BL0PR00MB0403.namprd00.prod.outlook.com.
