mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
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:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user