Generate, parse, and enhance JavaScript stack traces in all web browsers
Repo stacktracejs/stacktrace.js, read from GitHub 5 min ago. stacktracejs has not joined Take My Repo.
ES6 code is now parsed and enhanced!
StackFrames returned are now able to report on whether a function call was a Constructor, native code, or eval code.
The community has voted to change the license of the project to the MIT License
native, constructor, or eval.Due to popular demand, we've provided a synchronous way to get stack traces.
StackTrace.getSync()
HEADS UP: Does not enhance stack traces with source maps or guess anonymous functions like StackTrace.get() does.
StackTrace.report() now accepts an optional message
var stackframes = [StackFrame(...), StackFrame(...)] var url = 'https://reporting.yourservice.com/jserror' var message = 'undefined is not an Object' StackTrace.report(stackframes, url, message)
Example JSON POSTed:
{
message: 'undefined is not an Object',
stack: [
{functionName: 'fn', fileName: 'file.js', lineNumber: 32, columnNumber: 1},
{functionName: 'fn2', fileName: 'file.js', lineNumber: 543, columnNumber: 32}
]
}
Updated error-stack-parser to v1.3 which parses eval stack entries in a better way and fixes a bunch of bugs.
Updated stacktrace-gps. Now reuses the same instance to avoid duplicate requests for the same resource by default.
JSCS and automated PR testing have been implemented to ensure consistent styles and quick feedback.
Possibly breaking changes: ErrorStackParser now provides it's own polyfill for
Array.mapandArray.filter.evalinformation is will display differently in stack traces.