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
,
Jan 5 2017
,
Jan 5 2017
,
Jan 6 2017
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.
,
Jan 6 2017
,
Jan 6 2017
(reattaching the same screenshot, but so it previews)
,
Jul 25 2017
Issue 747978 has been merged into this issue.
,
Oct 12 2017
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by gaurangt...@gmail.com
, Jan 5 2017