Feature request: report the stack of eval'd javascript
Reported by
freshene...@gmail.com,
Sep 2 2017
|
|||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Steps to reproduce the problem:
run:
new Function("nonexistent()")()
What is the expected behavior?
I would like chrome to give an error stack that contains information about the stack within the dynamic context - ie inside the dynamically evaluated code.
What went wrong?
Chrome provides no way to report error information about dynamically evaluated code. Even just the line number would be a step in the right direction.
Did this work before? N/A
Chrome version: 60.0.3112.113 Channel: stable
OS Version: 6.3
Flash Version:
,
Sep 12 2017
,
Sep 13 2017
In DevTools console:
> new Function("nonexistent()")()
VM107:2 Uncaught ReferenceError: nonexistent is not defined
at eval (eval at <anonymous> (:1:1), <anonymous>:2:1)
at <anonymous>:1:30
Seems to work for me.
|
|||
►
Sign in to add a comment |
|||
Comment 1 by sc00335...@techmahindra.com
, Sep 4 2017Components: -Blink Blink>JavaScript
Labels: -Type-Bug Triaged-ET M-63 Needs-Triage-M60 OS-Linux OS-Mac Type-Feature
Status: Untriaged (was: Unconfirmed)