Closed ahmadov closed 4 years ago
FYI @EricCornelson it looks like the $
s disappeared when moving this code to its own class.
Yes, first I wanted to just add the missing ${}
but then I realized the type of the value argument is already a string
. So, If we put the missing $
, the function would be like that: this[...] = ${value}
and putting $
is not enough because if the value is "foo"
the result will be this[...] = foo
which is also undefined.
The way to solve that issue is surrounding the ${value}
with double-quotes such as this[...] = "${value}"
and in that case, it'd be always interpreted as strings.
I followed the other way because Chrome also uses the way "arguments". I think the underlying problem is type of the value is always a string.
Hi @roblourens,
I got your point and changed the code back to ${}
as it was before.
Fix microsoft/vscode-node-debug2#250