Fix #6142. Check for the argument name to be falsy

In some cases (see #6142 for a minimized testcase), the argument name is
returned as null instead of undefined as the code expects. This fix
simply changes to check for name to be falsy (in which case it will be
assinged a generated name).
This commit is contained in:
Arzhan Kinzhalin committed 2013-11-29 15:33:52 -03:00
1 parent 81cfc61082
commit 6262d4fa3a
1 file changed
+1 -1
@@ -443,7 +443,7 @@ var config = {};
name = inferType.argNames[i],
type = inferType.args[i];
if (name === undefined) {
if (!name) {
name = "param" + (i + 1);
}