New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 761643 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Feature



Sign in to add a comment

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:
 
Cc: sc00335...@techmahindra.com
Components: -Blink Blink>JavaScript
Labels: -Type-Bug Triaged-ET M-63 Needs-Triage-M60 OS-Linux OS-Mac Type-Feature
Status: Untriaged (was: Unconfirmed)
Considering the above issue as Feature request and marking it as Untriaged
Cc: yangguo@chromium.org
Status: Available (was: Untriaged)
Status: WontFix (was: Available)
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