Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for anonymous functions (eval) #32

Open
eriwen opened this issue Nov 25, 2016 · 4 comments
Open

Add support for anonymous functions (eval) #32

eriwen opened this issue Nov 25, 2016 · 4 comments
Assignees
Labels

Comments

@eriwen
Copy link
Member

eriwen commented Nov 25, 2016

@genielabs commented on Sun Jun 26 2016

Given an error stack like this one:

ReferenceError: a is not defined
    at $$.onStart (eval at <anonymous> (http://localhost:8080/hg/html/js/homegenie.webapp.js?version=r525:6851:25), <anonymous>:32:7)
    at $$.RenderWidget (http://localhost:8080/hg/html/js/homegenie.webapp.js?version=r525:6770:36)
    at $$.RenderView (http://localhost:8080/hg/html/js/homegenie.webapp.js?version=r525:6757:12)
    at http://localhost:8080/hg/html/js/homegenie.webapp.js?version=r525:6879:24
    at Object.$.ajax.success (http://localhost:8080/hg/html/js/homegenie.api.js?version=r525:724:21)
    at l (http://localhost:8080/hg/html/js/jquery-2.0.2.min.js:3:24881)
    at Object.c.fireWith [as resolveWith] (http://localhost:8080/hg/html/js/jquery-2.0.2.min.js:3:25702)
    at k (http://localhost:8080/hg/html/js/jquery-2.0.2.min.js:5:4919)
    at XMLHttpRequest.<anonymous> (http://localhost:8080/hg/html/js/jquery-2.0.2.min.js:5:8723)

stackframe will currently ignore the eval <anonymous>:32:7 at the end of the first stack element, which is the real source of the error at line 32, column 7.
It will indeed report stack[0] with line 6851 and column 25.


@eriwen commented on Fri Nov 25 2016

@genielabs Stackframe itself handles eval origins as you can setEvalOrigin(Stackframe). However, error-stack-parser does not set eval origins yet, so I'm going to move this issue to that project. Thanks for submitting.

@aight8
Copy link

aight8 commented Apr 19, 2017

Is there currently ONE existing js stack parser which can handle stacks which contains eval lines? I don't found any.

@cjaeriksson
Copy link

Any updates on this ?

@eriwen
Copy link
Member Author

eriwen commented Dec 15, 2017

@cjaeriksson No, I'm afraid.

@eriwen eriwen self-assigned this May 30, 2020
eriwen added a commit that referenced this issue May 30, 2020
@ForsakenHarmony
Copy link

ForsakenHarmony commented May 13, 2024

Hmm yes, 8 years later, and I still can't find a library that can parse it (and the PR here was never completed) 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants