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

Issue 678456 link

Starred by 4 users

Issue metadata

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



Sign in to add a comment

The Scope pane in debugger shows window as value for `this` inside fat arrow function

Reported by gaurangt...@gmail.com, Jan 5 2017

Issue description

Chrome Version       : Version 55.0.2883.95 (64-bit)
OS Version: macOS Sierra Version 10.12.2
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5:
  Firefox 4.x:
     IE 7/8/9:

What steps will reproduce the problem?
1. Run attached snippet code in the chrome dev tools and add breakpoint at Line7.
2. Observe value of `this` in Scope pane as well add a watcher for `this` expression and observe its value.

What is the expected result?
Both values should be `Prefixer1`.

What happens instead of that?
Scope pane has value of this as Window instead of Prefixer1.

Please provide any additional information below. Attach a screenshot if
possible.

UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36



 
C0UqaQPXEAAT7MF.jpg-large
73.6 KB Download
Prefixer1.js
291 bytes View Download
Reference discussion with @paul_irish: https://twitter.com/_gpatel/status/812102002666672128
Labels: Needs-Triage-M55
Components: Platform>DevTools>JavaScript
Labels: -Pri-3 Pri-2
Labels: -Needs-Triage-M55 M-57 OS-Linux OS-Windows
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Mac 10.12.2,Win 10 and Ubuntu 14.04 on 55.0.2883.95/87 and canary 57.0.2973.0.
This is a non-regression issue since 45.0.2454.93 and prior to this the script is giving syntax error.
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Untriaged)
(reattaching the same screenshot, but so it previews)
C0UqaQPXEAAT7MF.jpg
73.6 KB View Download
 Issue 747978  has been merged into this issue.
Mergedinto: 552753
Status: Duplicate (was: Assigned)

Sign in to add a comment