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

Issue 731273 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 327092
Owner:
Last visit > 30 days ago
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Local Variable showing undefined, after being populated by api call, using Angular2 and typescript

Reported by tyler.mi...@gmail.com, Jun 8 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. In Angular2 web app, use observables to call an api
2. create local, class level variable
3. assign response from api call to the local variable
4. in debug mode, check the value of response and local 
    variable

What is the expected behavior?
That the debug tool in chrome dev tools will display the value of the local variable properly

What went wrong?
The local variable, when moused over, would display as undefined, but would actually have the value from response saved properly.  This is not an issue of moving the value from response to the local variable, but the local variable not displaying its value properly.  See attached to get a better understanding.

Did this work before? N/A 

Chrome version: 58.0.3029.110  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 25.0 r0

As you can see in the pictures, the local variable allDocuments does get populated correctly, but dev tools isn't showing the value of the variable when moused over.
 
Data Defined.png
140 KB View Download
allDocuments Undefined.png
149 KB View Download
allDocuments Logs.png
169 KB View Download
allDocuments evaluates to true.png
169 KB View Download
Components: -Platform>DevTools Platform>DevTools>JavaScript
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Thanks for the report.
Can you please expand this in the scope panel on the right side of DevTools under call stack and take screenshot of value of allDocuments?
And if you can provide some repro scenario - it would be great.
Mergedinto: 327092
Status: Duplicate (was: Assigned)
It looks like resolving scope variables based on source map issue.

Sign in to add a comment