On javascript when a variable is not declared we get System.NullReferenceException: 'Object reference not set to an instance of an object.' at VisitVariableDeclarator.
[TO REPRODUCE]
On TypeScriptDemo add to foo.ts var i, length; just after the _timeout function.
[POSSIBLE FIX]
Execute Visit(variableDeclarator.Init) only if Init is not null
protected override void VisitVariableDeclarator(VariableDeclarator variableDeclarator)
{
if (variableDeclarator.Init != null)
{
// id skipped
Visit(variableDeclarator.Init);
}
}
Thank you
(I'm actually looking how to pull new request, sry i'm new to github)
Hi adams85,
On javascript when a variable is not declared we get System.NullReferenceException: 'Object reference not set to an instance of an object.' at VisitVariableDeclarator.
[TO REPRODUCE] On TypeScriptDemo add to foo.ts
var i, length;
just after the _timeout function.[POSSIBLE FIX] Execute Visit(variableDeclarator.Init) only if Init is not null
Thank you
(I'm actually looking how to pull new request, sry i'm new to github)