Expected Behavior
With a method that throws an error like:
static generate() {
throw new Error('Boom');
}
the function name generate should be returned from _findFunctionName
Current Behavior
Currently undefined is returned from _findFunctionName and a stack frame with an already populated function name from error.stack is replaced as
{anonymous}()@webpack:///src/main/lib/foo.js:15:10
Your Environment
- stacktrace.js version: 1.1.2
- Browser Name and version: Chrome 50.0.2661.94 (64-bit)
- Operating System and version (desktop or mobile): Yosemite