SublimeLogMagic icon indicating copy to clipboard operation
SublimeLogMagic copied to clipboard

var = function(anonymousFunction) should log var

Open cmalard opened this issue 7 years ago • 0 comments

Hello @syko :-)

Love your plugin \o/

Got this:

console.log('myVar', myVar)
var myVar = myFunc(myParam => myParam === myOtherVar);
console.log('myVar', 'myOtherVar:', myOtherVar)

I tried the ES5 version, it's more problematic:

console.log('myVar', myVar)
var myVar = myFunc(function (myParam) { return myParam === myOtherVar; });
console.log('myVar', 'myParam:', myParam)

It should generate all the time:

console.log('myVar', myVar, 'myOtherVar:', myOtherVar)

Not sure this is possible.

cmalard avatar Jun 26 '17 05:06 cmalard