这是indexloc提供的服务,不要输入任何密码
Skip to content

Cannot find function names for ES6 static functions #37

@rhart

Description

@rhart

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions