proposal-error-stacks
proposal-error-stacks copied to clipboard
ECMAScript Proposal, specs, and reference implementation for Error.prototype.stack / System.getStack
V8 now implements `error.stack` as as “magic” property, similar to `Array.prototype.length`: https://cs.chromium.org/chromium/src/v8/src/accessors.cc?rcl=472d3c8777d2ff0715cd217d6d3d4dcf27000db3&l=821-881 cc @schuay @hashseed
GetStackString contains > 6. Let `stackString` be the concatenation of `errorString`, the code unit 0x000A (LINE FEED), and `frameString`. This is fine in the normal case where `frameString` is non-empty....
Initially proposed at https://github.com/nodejs/node/issues/22575, and cross-posting here as recommended at https://github.com/nodejs/node/issues/22575#issuecomment-511999714. When an exception is thrown or when using `console.trace()`, files paths are not aligned making it difficult to follow...
Hello! At the moment: FF ignores 'name' V8 respects 'name' BUT it is used differently in trace produced by: 1) console.trace 2) throw "Test" AND 3) (new Error).stack 4) (1)...
Outstanding issues: - [ ] readme needs lots of fleshing out - [ ] Rewrite "compatibility" section in readme with systematically reverified data - [x] I suspect there'll be pushback...
Usecases
This issue is created for discussion What are the usecases for this proposal? I think what we want to add is a machine readable stack trace (in addition to the...
Pony Cause (Error Cause ponyfill) has [`stackWithCauses` function that generate a stack trace string with `cause` errors](https://github.com/voxpelli/pony-cause#stackwithcauses-getting-full-stack-trace-for-error--all-causes). Make sense to add function like `System.getStackStringWithCauses`. ``` Error: something really bad happened...
It would be convenient to get async stack traces, like what Chrome Devtools shows us in the sources tab. F.e. ```js // main.js function foo() { setTimeout(function bar() { const...
This proposal makes `[[ErrorData]]` store the list of Stack Frame records, but the description of `[[ErrorData]]` was not updated. ## Depends on: - [x] (merged) -------------------------------------------------------------------------------- Fixes
## Depends on: - [x] (merged) - [ ] - [ ]