You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A *self-contained* demonstration of the problem follows...consttest=(inp: string[])=>{console.log(this);for(letstrofinp){console.log(str);}}test(['1','2','3','4'])
Expected behavior: names:[] should be filled with the transpiled names. This breaks debuggers that try to show values when hovering over the variable name. In many cases this in scope refer to _this or _this1 or _this12.
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
TypeScript Version: 2.2.1 / nightly (2.2.0-dev.201xxxxx)
v2.2.1
Code
output:
Sourcemap:
Expected behavior:
names:[]
should be filled with the transpiled names. This breaks debuggers that try to show values when hovering over the variable name. In many casesthis
in scope refer to_this
or_this1
or_this12
.See microsoft/vscode#12066 (comment)
Having names would aid VSCode in giving a better experience for debugging transpiled typescript output
Actual behavior:
names
is always empty.The text was updated successfully, but these errors were encountered: