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
first of all thank you so much for creating such a great project I 'm facing an issue while trying to parse the attach js code. it throws an NoneType Exception, the js code is attached below.
what i did is simply added an if conditioni in xmlvisitor on line number 402 and it fixed the above error but i don't know if it's really a good fix.
defvisit_NewExpr(self, node):
newel=E.new()
newel.extend(self.visit(node.identifier))
arguments=E.arguments()
ifnode.args: # check if none before starting a loop as loop can't be run on NoneType objectsforarginnode.args:
arguments.extend(self.visit(arg))
newel.append(arguments)
return [newel]
Edit
The issue i mistakenly created on calmjs/calmjs.parse#40 but he explained it very well.
The text was updated successfully, but these errors were encountered:
first of all thank you so much for creating such a great project I 'm facing an issue while trying to parse the attach js code. it throws an NoneType Exception, the js code is attached below.
javascript code which causes the error
Code to reproduce the error
what i did is simply added an if conditioni in
xmlvisitor
on line number 402 and it fixed the above error but i don't know if it's really a good fix.Edit
The issue i mistakenly created on calmjs/calmjs.parse#40 but he explained it very well.
The text was updated successfully, but these errors were encountered: