Skip to content

Fully parse function names with @ in Error.stack - #27

Merged
eriwen merged 1 commit into
stacktracejs:masterfrom
leonidborisenko:fully-parse-fn-name-with-at-sign
Jan 3, 2016
Merged

Fully parse function names with @ in Error.stack#27
eriwen merged 1 commit into
stacktracejs:masterfrom
leonidborisenko:fully-parse-fn-name-with-at-sign

Conversation

@leonidborisenko

Copy link
Copy Markdown
Contributor

Function name in Error.stack can contain @ when function is defined as an object property:

const obj = { '@fn'() { throw new Error(); } };
obj['@fn']();
/*
Exception: Error
obj["@fn"]@Scratchpad/1:10:31
@Scratchpad/1:11:1
*/

Function name in Error.stack can contain @ when function is defined as an
object property:

    const obj = { '@fn'() { throw new Error(); } };
    obj['@fn']();
    /*
    Exception: Error
    obj["@fn"]@Scratchpad/1:10:31
    @Scratchpad/1:11:1
    */
@eriwen

eriwen commented Jan 3, 2016

Copy link
Copy Markdown
Member

This looks great! Thank you for contributing!

eriwen added a commit that referenced this pull request Jan 3, 2016
…at-sign

Fully parse function names with @ in Error.stack
@eriwen
eriwen merged commit e3eae6a into stacktracejs:master Jan 3, 2016
eriwen added a commit that referenced this pull request Apr 16, 2016
…at-sign

Fully parse function names with @ in Error.stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants